Part Number Hot Search : 
IS93C R31101 HT6513 AN1508 TCDT1VW 130094 PVC1033 LB1973JA
Product Description
Full Text Search
 

To Download MC68230G8 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  december, 19= : ,. .- this document contains information on a new product. specifications and information herein @motorola inc., 1%3 ad1-~ are subject 10 change without notice.
. . . motorola reserves the right to make changes to any products herein to improve reliability, function or design. motorole does not assume any iiabilityarising out of the application or use of any product or circuit dewri~ herein; neither does it convey any license under its patent rights nor the rights of othars. ?.
r .-. requesting bus master service . . . . . . 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4 vectored, prioritized portlnterrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-5 autovectored port interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-5 dma request operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-6 direct method of resetting status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-6 handshake pin sense control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-7 enabling ports aand b . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-7 portaand balternate registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-7
table of contents (continued) paragraph page number title number ?$: ?$$~:t<>$+* ..,.33$ .:,{\ ,.$.. , . . . section 3 \j~ .$ w* .j., j:.$,, .? ~ ~<,t<,:,i,.i port modes ? t~,~., ,~\,,,, > ~.>.~.. 3.1 }:<,... , ?? ? port a control register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ..$f~...h . .<::#-l 3.2 port bcontrol regis?er . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ..i.p..~~~~? 3-1 3.3 mode o- unidirectional 8-bit mode . . . . . . . . . . . . . . . . . . . . . . . . . ..k. j*i?+a@}?. 3-2 3.3.1 submode 00 ? pin-definable doublebuffered input or ~.\* ~~)~> ,?$::$, . j4. ,~!.!,: ~:,$y: singlebuffered output . .. ~? . . . . . . . . . . . . . . . . . . . . . ..f~~~~$$ . . . . . . . 3-2 .{$r.i,,,~$,, ,!?. 3.3.2 . submode ol ? pin-definable ~oublebuffered output,~~~,& non-latched input . . . . . . . . . . . . . . . . . . . . . . . . . ..?i~$~~~ . . . . . . . . . . 3-4 3.3,3 submodelx? bit 1/0 (pin-definable singieby%@re& output or non-latched input) . . . . . . . . . . . . . . . . . . ~ ~~<.~y :t\\~:.\\.?., . ~i$:;*?.*~.,\ .\$*tk. . . . . . . . . . . . . . . . . 3-6 3.4 mode 1 ?unidirectional 16-bit mode... . . . . ..i. !$t.c~~ . . . . . . . . . . . . . . . . . . 3-8 ( ?-? 3.4.1 port a control register.....:.. . . . . . . ..~~! . . . . . . . . . . . . . . . . . . . . . . 3-9 3.4.2 port b control register. . . . . . . . . . ~):* ~$,)!i:? . ..i.$ ~...,... . . . . . . . . . . . . . . . . . . . . . . . . 3-9 3.4.3 submode xo ? pin-definable doq-~&ffered input or singlebuffered output . . . . ..~$$&.w.j~. . . . . . . . . . . . . . . . . . . . . . . . . . . . ,, 3-9 3.4.4 submode xl ? pin-definable?w&%lebuf feredoutputor non-latched input . . . . . . ..$f . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...3-12 ? 3.5 mode2-bidirectiona18-bit~~de.... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-14 3.5.1 ?: port a bit 1/0 (pin-q~f~~a~!e singlebuffered output or ,, ,. non-latched lnw~~~-? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-14 3.5.2 port bdoubl*rq~$$@l /o . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-14 3.5.2,1 ?doubl+,~h~@@d input transfers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-15 3.5.2.2 doubl.&b~fi&redo utputtransfers.. ., . . . . . . . . . . . . . . . . . . . . . . . . 3-15 3,6 mode3? b~~tej$%$~nal 16-bit mode... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-17 3.6.1 douq&~u$fered input transfers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-17 3.6.2 d,@$$,@+~uffered output transfers.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-18 ~,, yp ..,,... ~b~.:> ,,. .,., ,?,,,t,,,. , ,? ~:$?? ,*+, section 4 i,. ,:1 .,,:> ..,~;},~t},. - programmer?s model 4.1 ,$~~#&rt general control register (pgcr).. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2 4.2$..+ ~pportsewice requestregist er(psrr) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-3 ~:~ $$> port data direction registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-4 ,;y~c?~~3.2 port bdata direction register(pbddr) . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-4 ?? ?:???s4.3.3 ; :t;;.~ port cdata direction register (pcddr).. . . . . . . . . . . . . . . . . . . . . . . . . . 4-4 ?? 4.4 portlnterrupt vector register (pier) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-4 4.5 port control registers (pacr, pbcr) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 4.6 port data registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-5 4.6.1 port adata register (padr) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-5 4.6.2 port bdata register (pbdr) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-5 4.6.3 port cdata register (pcdr) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-5 ? iv . +
paragraph number 4.7 4.7.1 4.7.2 4.8 4.9 4..10 4.11 4.12 4.13 4.14 -, - ?) ~, . 5.1.1 5.1.2 5:1.3 .? 5.2 5.2.1 5i2.2 5.2.3 5.2.4 5.2.4.1 5.2.4.2 5.2.5 6.1 table of contents (concluded) page title number+::~$:$, ,* ,,.,..~$, ! $ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2 periodic interrupt gener@(~?&le. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-3 -square wave gener:j~$$z, . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-3 lnterruptaftertim~:w;3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-4 elapsed time ~:e,~~@entexamples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-5 system qq~sxample . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-5 exter+r#~&l#ck . . . . . . . . . . . . . . . . . . . ; . . . . . . . . . . . . . . . . . . . . . . . . . 5-6 device,~~t~dog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-6 .,\ ..~,!>+i,. ?.~p$k,. ,*!, .*y**.,\,,hkx8,. ,.jv, \>,.!, section6 . . . . ?.<. ?* :<.,, ,q,.v electrical specifications ~~$~~~rn ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-1 6.2 ,~:*.@~ttialc haractetistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-1 6.3 ,.)}~%owerconsiderations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-1 614?~$~??* dcelectricalcha racteristics . . . . . . . . .{ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2 .~?k.~? ac electrical specifications - clock timing . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-3 ,$,:;???? ac electrical specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-4 ? .~$,i. ?i* :?..,:{,. ? >,$? 1: 7.1 7.2 7.3 section 7 mechanical data and ordering information pin assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-1 ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2 package dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2
hgure numbr 1-1 1-2 1-3 2-1 &6 1-2 14 1-6 2-3 24 2-6 ,.-_, 2-6 ( 5-3 54 5-5
list of tables table number wtle 1-1 port mode control summav . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3 1-6 1-8 2-5 3-2 3-8 3-14 3-16 3-18 a 4-1 ? 4-3 4-5 5-2
~ ~*~.*. ,>..,,. ,, .~: \\., .,:s. .s~?-s ,}1 ;*+ - :, ?{., ~ *j,:\~j,~ .. .~, ,, section 1 ~;: .,k::$\.. .>, , ..,-\,i .l~,.~ ,,, ,,,., :*? .- ?!?. v*,, ? introduction .,,:,?< ~ ., ,,,:.$.> ?!.$> ??is$~. ,,3: $,* ,.,,$ ,.\ ,\~\}y, ., ..-,, .,...,!:i? ?,$. .$r:~ ,,,,.:?.>???s j. fj, y.: t. the mc68230 parallel interface/timer ( p1/tl provides versatile double buffered,$ar~i~~ interfaces .}j,> and a system oriented timer for m68000 systems. the parallel interfaces oper~~~$~$nidirectional or bidirectional modes, either 8 or 16 bits wide. in the unidirectional modes, afl,?$$sciated data direc- tion register determines whether each port pin is an input or output. in .ti&@#rectional modes the ?$f.jp.$?)<>. data direction registers are ignored and the direction is determined d,y,na~~c~lly by the state of four handshake pins. these programmable handshake pins provide an inf&f@ce flexible enough for con- nection to a wide variety of low, medium, or high speed peripheq~~~$$ather computer systems. the pi/t ports allow use of vectored or autovectored interrupts, ~~g$~is~ provide a dma request pin for connection to the mc68450 direct memory access contr@ler?!q,mac) or a similar circuit. the pi/t timer contains a 24 bit wide counter and a 5-bit prescal@.~he timer may be clocked by the system clock (pi/t clk pin) or by an external clock (tin fiy~$nd a 5-bit prescaler can be u?sed. it can generate periodic interrupts, a square wave, or a $$~~~~terrupt after a programmed time pefiod. it can also be used for elapsed time measurement 0*.ss a device watchdog. ,, ,$::* ,, . . \.j):? features of the pi/t include: , ?+? ?t.,,, .:,, \ ,+,/ ~@+qj~* consists of two logically independent sections: the ports and the timer. the port section ~+,~~~~f~ts of pofl a (pao-pa7), port b ( pbo-pb7), four handshake pins (hi, h2, h3, and h4), two $~~neral input/output (1/0) pins, and six dual-function pins. the dual-function pins can individually ~?operate as a third port (port c) or an alternate function related to either port a, port b, or the timer. the four programmable handshake pins, depending on the mode, can control data transfer to and from the ports, or can be used as interrupt generating inputs or 1/0 pins. refer to figure 1-1. the timer consists of a 24-bit counter, optionally clocked by a 5-bit prescaler. three pins provide ) complete timer 1/0: pc2/tin, pc3/tout, and pc7/tiack. only the ones needed for the given -? configuration perform the timer function, while the others remain port c 1/0.
,, 363940 41 42 43 44 45 46 47 4s 1 2 3 vss reset clk ? c% dtack r/~ do d1 d2 d3 04 05 d6 d7 ,, 4++ r 4 # port interrupt/ dma ?j control logic ,, ,, ., controllers and timer ., ~pbo ., ,. ~pbl ~pb2 ~pb3 ,, ~pb4 ~pb5 ~pb6 ~pb7 tt?tt pc71 pc4/ pc3/tout pc2/tin pcl pco rs1 rs2 rs3 rs4 rs5 ~ 28 27 26 25 37 % ~ji\? ,*$ ,.:. ~t$,,y, ,.:\> .:$, *i\, .,?~ figure 1-1. block diagram . . . ~ ,t:: :$. ,.j.j.i ,, *:,:+\ *$ .?,.? ~,, a!. t~~.?. ?.yif\3, !+}?:?,,. a&, ,$ ~ +~. thq,w$t~.m bus interface provides for asynchronous transfer of data from the pi/t to a bus master ~m#*t$& data bus (do-d7). data transfer acknowledge (dtack), register selects (r s 1 -rs5), timer ?~~wpt acknowledge (tiack), read/write line (r/~), chip select (~), or port interrupt ?$~;~knowledge (piack) control data transfer between the pi/t and an mm. ,.,. ?!.:, 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 -.. . ,., ~, 1.1 port mode description the primary focus of most applications will be on port a, port b, the handshake pins, the port inter- rupt pins, and the dma request pin. they are controlled in the following way: the port general con- trol register contains a 2-bit field that specifies one of four operation modes. these govern the \ 1-2 >. \ . . . .
,* overall operation of the ports and determine their interrelationships. some modes require additional information from each port?s control register to further define its operation. in each port control register, there is a 2-bit submode field that serves this purpose. each port mode/submode combina- tion specifies a set of programmable characteristics that fully define the behavior of that port and two of the handshake pins. this structure is summarized in table 1-1 and figure 1-2. ?\\:s, k\& *)*< .\..y$<$ ~n,? ., .,,. y ,jk>, ,.<,., ?::$~ , ~ $t> 4* y?: <,~:]. 1~ . . ? ,i,$ra,i.,c~? table 1-1. poti mode control summa~ , .*,.,, ~\+\.l.i, . { >,,,*, . ,..:,$,,~:>~ +$., ,.$ ?k ,,$: ,.?, .,. .+.. .3.8 mode o (unidirectional &bit mode) ?{]*;? .{: ,:,<.,,*i:,, . .k,k\\\: 1, port a j.: ~:i, ?+?? ?::: >. .:** submode ~ ? pin-definable doubl&buffered input or singi%buffered output ~:~, ,sy l)ii~.!,,, .t$, h1 ? latches input data ?., ~ . ,t$}:;.~, .?ti$ ,:1, . ~ ~?:.. h2 ? status/interrupt generating input, general-purpose output, or operation wtf~ ~+~$ the interlocked or ,: ?. ~, .#? pulsed handshake protocols , !**\*. :, $. ?~:i>.+*? submode 01 ? pin-definable doubt&buffered output or non-latched input ~~?:$%? h1 ? indicates data received by peripheral .:,: h2 ? status/interrupt generating input, general-purpose output, or .~~~on??hth h 1 in the interlocked or pulsed handshake protocols .,; !:.* \ ? {%*.,.\ submode 1x ? pin-definable singlebuffered output or non-latc~~. intit ~ $.>.. ., &<\, .!*?. h1 ? status/interrupt generating input .,?.?, > ?*j$ . . . . ..:.? ?ftqf\ ??? h2 ? status/interrupt generating input or general-purpq o~~pt port b ,fe;;:i.$ ? j ?+,:+,. h3 and h4 ? identical to port a, h1 and h2 .) 1$ ,,f>..v*\i,@ \ ?$j ii}, . t:<\\,\~.?$3 \t.,#$* mode 1 (unidirectional l&bit mode) .$.?.:;\{(h . . . . . +<.., port a ? most-significant data byte or non-latched lwt~r singl~buffered output submode xx ? (not used) *$fj ,, h1 ? status/interrupt generating in@~~ ~ ; h2 ? status/interrupt generating ~p~k~r general-purpose output port b ? least-significant data bvte , +~~,j~$, submode xo ? pin-definable d@~&~ffered input or single buffered output h3 ? latches input data~&~~$<<:jif h4 ? status/ intermp~ emjhg input, general-purpose output, or operation with h3 in the interlocked or pul,ed handsmkg~~tocols submode xl ? pin-d&~n;&@ ~oubl&buffered output or non-latched input h3 ? lndicate~~&t~weived bv peripheral h4 ? sta$~,q+~~,@pt generating input, general-purpose output, or operation with h3 in the interlocked or pul~$ h%dshake protocols .,>,, v%. .,,;:$ ~ :?~: - mode 2 (bidirectioh~,~it mode) port a ~~~$ i/@? s@~~~@xx ? (not used) ?;: ~ubl&bu~fered bidirectional data * poyi$i:.$ik ~$~$,$ti~ode xx ? (not used) ;s:ia +,+ .y+ti ,,. ~ .*, h1 ? indicates output data received bv the peripheral and controls output drivers , . ?*$?>.., ~? >,$< \+;.*.j~ ~ h2 ? operation with h1 in the interlocked or pulsed output handshake protocols ,; , ?.% ~~ ~!~ :,* :,,? h3 ? latches input data ,, + ,f 8 h4 ? operation with h3 in the interlocked or pulsed input handshake protocols \-!$~.i:.?.- mode 3 (bidirectional 16 bit mode) port a ? doubl&buffered bidirectional data (most-signifi@nt data byte) submode xx ? {not used) port b ? double buffered bidirectional data (least-significant data bvte) submode xx ? (not used) h 1 ? indicates output data received bv peripheral and controls output drivers h2 ? operation with h1 in the interlocked or pulsed output handshake protocols h3 ? latches input data h4 ? operation with h3 in the interlocked or pulsed input handshake protocols ?..
legend: a[ = doubleb.ffered ?)sing?ebuffed mode o submooe ~ rmddnable doubl&buffered input or sngl*buffered output ..,. - [, mode o submode 01 .< pimddnable doubl+bufferad q ~,, or nomlatchd input ~ ?k.$ ?~ i i mode 1 port b submode xo pimdtirrablti doublebuffered input or singl&bufferad output figure 1-2. por mode layout (sheet 1 of 2)
e m c6b230 h2 mode 1 port b submode xl pi* definable doubl&buffered output +?- or nom latchd input h3 h4 i 1 .: . x! ? ?%:: *a , a and b ?! ~.~: :.>, ~ ..i f,;:): , ti?.,~,]:-.>.. (16) ..,!* ~ ,$ ,<:,, mode 3 < h1 ,+ >,, *) , bidirectional l&bit ~,i::t~$.. h:) mc6s230 hz output transfers .:, -\,,.\. ,..>:$>, :>x$,.?-o ,.~l$: < h3 ,* .i.:i,,, ,. . . ,. . ...)..;: ~? ,.,,.,>$$? ?+> h4 *}? input transfers ?, ?1$,,,, ,:. :,?$,,,, :$. }i,.$y .,*,,%, ~ ,$.,.~..,i. .,.:<$,. ,,, .*, s.? ., . ,.!~. ..l . ...* \ .*]j.\ . ,p~~$e 1-2. pon mode layout (sheet 2 of 2) ?.<, .,l ~+ ?~?, . .,,;,.;$$l?>.: -, ,+~,+1 .:>$? 1.2 signal de~,@jr~on ~,~$ ~ .-:::, throughout ~~is dw? sheet, signals are presented using the terms active and inactive or asserted and negat~$~~{~~pendent or whether the signal is active in the high-voltage state or low-voltage state. (~$a~~gt)ve state of each logic pin is giyen below. ) active low signals are denoted by a supers?$~~%,. bar. r/~ indicates a write is active low and a read active high. table 1-2 further dq,~~iseach pin and the logical pin assignments are given in figure 1-3. ::> ~::. ~ >>.., .,.i*3* *: .p;* ,l*. <$ ~ ~~$$~zl bidirectional data bus (do-d7) ?l\,*$ k, the data bus pins, do-d7, form an 8-bit bidirectional data bus to/from an mw~ bus master. these pins are active high. 1.2.2 register selects (rs1-rs5) the register select pins, rs1-rs5, are active high high-impedance inputs that determine which of the 23 internal registers is being selected. they are provided by the m88000 bus master or other bus --- master. . . 1-5
table 1-2. signal summary signal name input/output adve state edge/ level senstive output states ? clk input falling and rising edge m input low lavel ~d7 input/output high= 1, low=o level high, low, high impe dmareq output low high, low m output low high, low, high lmeq@ h1(h3}*** input low or high asserted edge h2(h4)* * input or output low or high asserted edge high, low, hi@? [rn@nce pa& pa7**, pbgpb7?*, input/output, high=l, low=o level high, loy&~~mj,@dance pco-pc7 input or output ;?y( ..:.:. piack .,! input low level ?>?:,.,.:?$ , .;i, ? m output low ,$,fl~i~~gh impedance* rs1-rs5 input high= 1, low=o level ,,~. ??+$~. r/w input high read, low write . . . :.. level .*:.\l. ~ !~;.,~ , *j,?,? m input low y level \?j:;~: ,v,:: ). ? m input low le~#~ ? \>\ tin (external clock) input risj~~~#& tin (run/halt) input high , $le$l ? tout (square wave) output low .%} ,-,$:.$y, .:$, .>)..,,, ?**:i.??~. 11.?.%~j, ??~.pt>:, ,\\il, ., :., ? n do-d7 ,f;$ paopa7 rs ~~~:~$, , ~?..$:a< pb@pb7 *v. ..?:+, ?? .> .- :,:t*:n!.+i]t,>. i if ,+ ? ,3 s{j, h1 .j.:&: .,<.+ =.l.. 2 /,> h3 ~w ~cm2m h4 figure 1-3. logical pin assignment :. ?!,\. :?!: ., {j.; :.> - .,,; +,,,.l+ .i,,$f~.*readlwrite (r/~) ?;~%~~ is a high-impedance read/write input signal from the mw~ bus master, indicating whether ? the current bus cycle is a read (high) or write (low) cycle. 1.2.4 chip select (=) c= is a high-impedance input that selects the pi/t registers for the current bus cycle. address ,,?, strobe and the data strobe (upper or lower) of the bus master, along with the appropriate address ? bits, must be included in the chipselect equation. a low level corresponds to an asserted chip select. ,...., (
\ ) ?. . 1.2,5 data transfer acknowledge (dtack) dtack is an active low output that signals the completion of the bus cycle. during read or interrupt acknowledge cycles, dtack is asserted after data has been provided on the data bus; during write cycles it is asserted after data has been accepted at the data bus. data transfer acknowledge is cq~. ., .k<&..:.&:.$*,.. patible with the mc68000 and with other m68000 bus masters such as the mc6b4w direct ~?$$~? access controller (dmac). a pullup resistor is required to maintain dtack high bet~%~f.8us cycles. ..::,*. .t*\j ..,.? ,.,, ,]>.:a~~ 1.2.6 reset (reset} ,,.. ,$,, k$;~ ~t is a high-impedance input used to initialize all pi/t functions. all con$~~$and data direction ~ ?r,,. registers are cleared and most internal operations are disabled by the as,~~$~ of reset (low), ,.??, ..,8 ..t) .)s ~ $... ? ?i${k::*y? ,?\ .*\??.li,i, 1.2.7 clock (clk) .\h~\,:iy..?,. ,,.:$.. ., l .,?:>, ?* . . . . ,,: the clock pin is a high-impedance ttl-compatible signal ,~i~$l$~b same specifications as the mc6boo0. the pi/t contains dynamic logic throughout, an~ ~~n~~his clock must not be gated off at any time. it is not necessary that this clock maintain a~~?particular phase relationship with the m6boo0 system clock. it maybe connected to an ind,~~endeht frequency source (faster or slower) as long as all bus specifications are met. .~f<{t, ..:?~?, :.~t$t, ,:>~ , :+}, ?? i,. \ . !!,? ., ,, ,:3 ~ $,> s,.?..-,..,],:,*+ 1.2.8 port a and port b (pa&pa7 and pb@p&~~ . . ports a and b are.& bit ports that may b,~~on?catenated to form a l&bit port in certain modes. the ports may be controlled in conjuncti~~~:wh the handshake pins h1-h4. for stabilization during system power up, ports a and b ~,~v&j~&rnal pullup resistors to vcc. all port pins are active high. .) ..*>,, 0,!, ... .,. ~t.w ? +;*, ?*j,. )*m>\\ ~.~?>:l?. 1.2,9 handshake pins (h1-@$$~y? ..1:,,, ? ?t]> - handshake pins h1-h4 ,fg ~~dfti-purpose pins that (depending on the operational mode) may pro vide an interlocked ,k~$hake, a pulsed handshake, an interrupt input (independent of data transfers), or simrld$~,q pins. for stabilization during system power up, h2 and h4 have internal puilup resistors f~? ?~~. the sense of h1-h4 (active high or low) may be programmed in the port general cont~ajcreg~ter bits 30. independent of the mode, the instantaneous level of the handshake pins can b~~~w?from the port status register., *.., :<:jifh.<:\y,: ,,.jm,\/> ., ,:., ,,, ,\ ?.~?, $,fl<~klort can be used as eight general purpose 1/0 pins ( pcgpc7) or any combination of six special , ??>~mction pins and two general purpose 1/0 pins (p copcl). each dual-function pin can be a stand- ?j3?~?l$~~rd 1/0 or a special function independent of the other port c pins. when used as a port c pin, these .,;~ },, ~ pins are active high. they maybe individually programmed as inputs or outputs by the port c data direction register. the dual-function pins are defined in the following paragraphs. the alternate functions tin, tout, and tiack are timer 1/0 pins, tin maybe used as a rising-edge triggered external clock input or an external run/halt control pin (the timer is in the run state if ) run/halt is high and in the halt state if run/halt is low). tout may provide an active low timer inter- -? rupt request output or a general-purpose squarewave output, initially high. ~ is an active low high-impedance input used for timer interrupt acknowledge. 1-7
port a and b functions have an independent pair of active low interrupt request (~1 and inter- rupt acknowledge (piack) pins. the dmareq (direct memory access request) pin provides an active low direct memory access controller request pulse for three clock cycles, completely compatible with the mcw50 dmac. .:, t)!.,? :::1,:.. ! ,* :.-./.+ ~ .?* x.,$ ,..,3..: ~ >, ~bkt:,.,.. 1.3 register model .>,$ , .,s>? ?:!* 33\ ?:.$.l.,., ..-+>* 1.,,. ~ .,, . .,>>3. *,?.>, a register model that includes the corresponding register selects is shown in table 1-3., %;*!$? ,,.!jj: ,., !*$&? ~,~,,,,,~?., *%. c .?*?> ?,,+s ~. {.\.t , t\:.?.. table 1-3. register,model (sheet 1 of 2) ?~, ?~?&$ ., ., i \ register select bits 543217 6 5 4 3 2 1 00000 port mode h34 h12 h4 h3 port general control enable enable sense sense contol register 00001 * svcrq ipf p@rt ~~rrupt 00 port service select select *tity ~o?trol request register .,. 00010 bit bit bit bit bit .~*!ikj ??:~$ bit bit 00 port a date 7 6 5 4 3 ~ ? . . t\! \ ,, ?,:~ ,oooli bit bit bit bit *+,,+? ? 0 00 ~%;ya~~ter bil .> ,.??! bit bit 7 6 5 4 3 ~:$ 1 0 direction register 00100 bit bit bit bit ,$ bit .<$ bit bit? bit ,00 port c data ,. 7 ,6? 5? 4.:$ *v&% 3 2 1? 0 direction register , 00101 interrupt vec~$$j~i, ?:? * l of pofl interrupt :, numb,@ ,, ?js~-?*? vector register 001?10 ,$~+> ..: j port a .i:~.\ ~ q~ea,+?> hz h1 hi 00 port a control submode #t,p,&~&5ntrol int svcrq stat register ..$l~ .$~ ~.s),:,;j!, ~,,,, . . .*\: enable enable ctrl ? 00111 port b *{.* ?p.. ?.y h4 $ .~t*k,& h3 h3 00 port b control submode $+ ~ .,>? h4 control i nt svcrq stat register ~#,,:i.;,k*\.\. , ~ *:f t:? enable enable ctrl 01000 bit bit bit bit bit bit * l .,., port a data 7 4 3 2 1 0 register 01001 ~t bit bit bit bit bit ~~ ~t,?+ ~ 6 5 4 ~ 2 , 0 l * .,, port b data register :,., 0 1 0 1 q* ww bit ,?,., bit bit bit bit bit bit l ** port a alternate *j, , .,, :l,i > *a .*k?~~ 6 5 4 3 2 1 0 register - 0 1 0 ~l;;t!$?: ?*? bit bit bit bit bit bit bit bit l ** port b alternate .,. ~,,t>: y ..;,, 7 gy , ??, 6 5 4 3 2 1 0 register o *i ?id :* o bit bit bit ., ,r:i ~ .:.i, ~..,?:+w bit bit bit bit bit l *** port cdata \*. \ .k$]:?,~,* .,. 7 6 5 4 -.1,?, .,,. 3 2 1 0 register i$$:~,y$ 1 0 1 h4 h3 hz h1 h4s h3s h2s his l l l l port status ,.. , . ~i+r~? level level level level register $01110 * l * l l l l l 00 (null) 01111 l l l l l l l * 00 (null) l unused, read as zero l *value before reset l * l current value on pins l * l & undetermined value ..- ( ..\
10000 h tout/~ contr( bit bit 7 6 l l 10001 timer interrupt vwtor register (null) 10010 counter preload register (high) counter preload register (mid) counter preload register (low) (null) 10011 10100 16 . +.-, t? bit 1 , 8 1 , bit bit bit bit *t@+74\ ? bit bit bit 7 6 5 4 3 f????% ? 1 0 10101 l * lolll-m count register (hight count register (mid) lloo or 1211 m l * r:/register < zds o 0 timer status register l 00 (null) 1 l 00 (null) i l i 00 (null) < l 00 * 00 (null) (null) note table 1-3 has been duplicated on foldout pages 1 and 2 at the end of this document for your convenience. \ i i
1.4 bus interface operation the pi/t has an asynchronous bus interface, primarily designed for use with an m68000 microprocessor. with care, however, it can be connected to synchronous microprocessor buses. this section completely describes the p1/~s bus interface, and is intended for the asynchronous bus designer unless otherwise mentioned: ~ ~*~.*. ..v..,>., j,*, a),:!bsq:+~ .<+\v ?~?.~ ? in an asynchronous system the pi/t clock may operate at a significantly different frequency,, q~$~~?~ higher or lower, than the bus master and other system components, as long as all bus speci~@~ws are met. the m c68280 clk pin has the same specifications as the m c68000 clk pin, a~~~d??not be gated off at any time. ..\\i.,> .*9 ,. \ ,\<.!, ,b,,t.:i%+y.k, ., !,. ,, .x, .,. ?$t~,, ~! ~.~.,.:..a ,, *, ?ithe ftillowing signals generate normal read and ?write cycles to the pi/t: = {a select), r/~ (read/write), rsi-rs5 (five register select bits); d&d7 (the 8-bit bidire~tiw???~ata bus), and dtack (data transfer acknowledge). to generate? interrupt acknowled~~~~~s, pc6/ piack or pc7/~ is used instead of ~s, and the register select pins are ignow~l~o combination of the following pin functions may be asserted simultaneously: ~, pia~~~$~r m. . ..:~:..\>\,, ?*$., ;{, 4*$ !*<, ~\,.\a\ />? . ..$. ,$? ~ ., 1.4.1 read cycles .*. .\-> ~ , ,*:> ,,*;!, ?\lfe\, iig ,<,.k,~. !.], > this category includes all register reads, except port or t~~~~r i~brrupt acknowledge cycles. when ~s is asserted, the register select and r/~ inputs a~e.~t~ed internally. they must meet small setup and hold time requirements with respect to th~,,~~ed edge of ~s. (refer to 6.6 ac elec- trical specifications for further informatid%$~$~he pi/t is not protected against aborted (shortened) bus cycles generated.by an address er~prbr bus error exception in which it is addressed. ,, ,$.$ ,:,. \.$. ,, :., .>;,\>, certain operations triggered by normal re~. (~ write) bus cycles are not complete within the time . .w.h~ !,,.? latched at the pi/t?s data bus interface at the same time =k is asserted. it is stable as long as chip select remains asserted independent of other external conditions. from the above discussion it is clear that if the chip select setup time prior to the falling edge of%~~}{ clock is met, the pi/t can consistently respond to a new read or write bus cycle every foq~~j#w-? cycles. this fact is especially useful in designing the p1/~s clock in synchronous bus :~:%~~@not using dtack. (an extra clock period is required in interrupt acknowledge cycles, seei!~~~~ inter- rupt acknowledge cycles. ) .,! ,$,:, :{>.?:..+ +i,~;k,t,p ~l. .,, , >.,~,$.:.~icrt ~ ~i:<$~? ~y.~ ,$1+ in asynchronous bus systems in which the p1/7s clock differs from that$ofiw bus master, generally there is no way to guarantee that the chip select setup time with~~~mt to the pi/t clock is met. thus, the only way to determine that the pi/t recognized the a~j@7& of = is to wait for the assertion of dtack. in this situation, all latched bus inputs to the w{?tfibst be held stable until dtack is asserted. these include register select, r/~, and write &f&~lnputs (see below). ,:$$.?:, ..;j? ., t,> -k:, system specifications impose a maximum delay from the ~~[~ (negated) edge of ~ to the &~:$.* ;%. negated edge of dtack. as system speeds increase thi~~~~.~~es more difficult to meet with a simple pullup resistor tied to the dtack line. ,therefor@. t~t,p1/t provides an internal active puilup device to reduce the rise time, and a level-sensitive cit$~{t that later turns this device off. ~k is negated asynchronously as fast as p~ssible foll,o~~~ the rising edge of chip select, then three stated to avoid interference with the next bu+:3$&~ ~ ~%.t.~;!, .i: , ?. the system designer must take care that:d=k is negated and threestated quickly enough after each bus cycle to avoid interference wi~fi?~p next one_with an m~ooo this necessitates a relatively fast external path from, the data s~~@jnegation to cs bus master ne9ation. ., ,, .?}? ?r* \~~ .t;a}>,v. ?$*y. ,.., .,>:$~- 1.4.2 interrupt acknowled~~.~~~s special internal operati?,~$~~~k?place on pi/t interrupt acknowledge cycles. the port interrupt vec- tor register or the tirn?~,v~tor register are implicitly addressed by the asseflion of pc6/ plack or ,? ..+,.,,. +>. $,?~~,,.x+?).~ pc7/tiack, respe@v~ly. the signals are first synchronized with the falling edge of the clock. one clock period aft ?}$@&$??are recognized, the data bus buffers are enabled and the vector is driven , ,+ onto the bu~,. d $ k is asserted after another clock period to allow the vector some setup time prior to d~&,@~,~ dtack is negated, then threestated, as with normal read or write cycles, when piack,,~~,m is negated. . . . . ,,.; \ .~,,, ? $*.\, ~;:h ?:*,, q*??~grite cycles \ ,.~,. <~ti%any ways, write cycles are similar to normal read cycles. on write cy~es, data at the do-d7 pins :.,..,:,?% ~~ ~,,. must meet the same setup specifications as the register select and r/w lines. like these signals, ?;??? wfite data is latched on the asserted edge of ~s, and must meet small setup and hold time re !/,.. quirements with respect to that edge. the same bus cycle recovery conditions exist as for normal read cycles. no other differences exist. . i. 1-11
note ? for mask sets gg7 and kd1 if the rs lines are selecting the port interrupt vector register (pivr) or timer interrupt vector register (tivr) during an interrupt acknowledge bus cycle then those registers may be changed. four cases exist for this situation, they are: ~ ~*~.*. 1. case: . . . . . . $,*, rs lines are addressing pivr during a port interrupt acknowledge .,. . . f !?}~{,?.(,!~tt., :*, cycle ( piack asserted). ;$!p ? .*.>, ?~j * i ?.. $<+, results: 4,*ll ?j\?:,, >... incorrect iack vector on data lines, bits o and 1 are zero, pivr and ~~;;;~~s tivr remain the same and are not changed. .,a~: ?. - .:, , .,?, , .?,?,..> 2. case: rs lines are addressing tivr during a port interrupt acknowle@~~$y cycle (piack asserted). ?, ~ ~.},)l ,,,:; results: $1 incorrect iack vector on data, lines, pivr and tivr areic~wed 3. case: rs lines are ,addressing pivr dpring a timer interrupt @?wiedge cycle (tiack asserted). ,.$,. ?i? ~>. !>...,sj results: .~~. incorrect iack vector on data lines, pivr and tiv:~$% changed. 4. case: rs lines are addressing tivr during a timer in~~~~t acknowledge cycle (tiack asserted). . . ... . . . . . . * correct iack vector on data lines, pivr ~~~!%i~*r remain the same [ ? and are not changed. ?\ -,,.,,, ,4$. ~,.:~+ ~, ,.,{l. ..-:.?, for mc~ooo and mcwo1o systems that use aif~$?for rs lines rs1-rs5 the above cases will never occur. a5 and a4 will remain ,,~? ?$:. v tiring interrupt acknowledge cycles ~v:.+$, and thus pivr and tivr will not be selected ~&jshown below. ,., ., ,, !?- ~p#;\k, p rs4 ~~ rs3 rs2 rs1 mc03~ iack cycle ?$$:$$?,. ?:? 1 ? encoded level ? mc~230 pivr addres$~~$,~h o 1 0 1 mcw230 tivr add[~#~~~ 1 0 0 0 1 ,k ! +t~,~~ ?.. ,~t> ~ . . ?l*? .,,,:. \,$** .??.: ,,*.*i+.* -~.:<.e:tt . fi,h $ \rl$.:;*41*,:??:,:* , ~h.. .<,. ~+i, ~?k?., ,,}.t - ?.~.+?. ,j$:j( . .:*\. t. j ? . -*.** ~ij ,. ~ .?:>,:$? ~ ~:~ ,. # .+;~:g:,,p? ,,,, ~?.~s ,. ?.~$. ~ ~*;k*&~ ~ti*?, :?.. .,.., ,m:, . . . ,;~:\~,~ ~?.? ,> ,\\ +iy:.i,~ !i. ..?\>l>, >.$? ? ?~
.-: \.r*,, ?*% \~\j{j+}7~t?:\l,:t \\\\.., ~~.$.> , ? ,$.: . , . :a ,.~ .:f ,~; . . ~?. section 2 ? ~.~:),,>t, .,\.ir ~t+::.t, ,,x,. ?q, ??? port general information and conventionspj~$??+? ?+if ,$* .*..:, *?<:,., >. ?*?.. ,> ,,, , ?t< ??/>,, ,iy this section introduces concepts that are generally applicable to the pi/t po$}${,~d~~endent of the chosen mode and submode, for this reason, no particular port or handsm$$~~%s are mentioned; the notation h1 (h3) indicates that, depending on the chosen mode a~,$~ : t p,~~>, , ?y+ ,,\t,.}:\*..\$ .:~i$. .,?j:> \ ,,., 2,1 unidirectional vs bidirectional t i. ,? .. .i. ,~.:: $<.??$~$~. ,~ -.;:;: ~?. ,,*l ~i.~ figure 1-2 shows the configuration of ports a and b and *&ch bf the handshake pins in each port $- $,t.:, ~\,,\y mode and submode. in modes o and 1, a data directio~.@gis?&r is associated with each of the ports. these registers contain one bit for each port pin to ~a~,r%ine whether that pin is an input or an out- put. modes o and 1 are, thus, called unidirectio@~~des because each pin assumes a constant direction, changeable only by a reset conditi%~ak. a programming change. these modes allow doublebuffered data transfers in one directio~. mis direction, determined by the mode and sub- ,$8 . mode definition, is known as the primar~~irectlon. data transfers in the primary direction are con- trolled by the handshake pins. data tr~.s%s not in the primary direction are generally unrelated, . and single or unbuffered data pat~s ~~~~~ \ .~<:+,,, *::* a. ~}. 9s?$. ?.~>v% in modes 2 and 3 there is no,~ef of primary direction as in modes o and 1. except for port a in mode 2 (bit 1/o), the data ~lr%,%in registers have no effect. these modes are bidirectional, in that the direction of each tra@7e~%&fways 8 or 16 bits, double buffered) is determined dynamically by the state of the handsha~@i~@#! thus, for example, data may be transferred out of the ports, followed very shortly by a ~~~~:@ into the same port pins. transfers to and from the ports are independent and may occur f$~~y sequence. since the instantaneous direction is always determined by the external sys~~~, a small amount of arbitration logic may be required. \,\k . . ..l?+. . ~t,,+ ..\,?.,,\j>:? . . ,1? . *>t,.p.*.,, ?t,t, 2.1.1 ~~~{rd~ of double buffered data potis ? .,}?,,, .$( ~,jf) g#we&ly speaking, the pi/t is a doubl%buffereddevice. in the primary direction, double buffering ,,~?~w~ orderly transfers by using the handshake pins in any of several programmable protocols. ?$~{~hen bit 1/0 is used, double buffering is not available and the handshake pins are used as outputs ?:$j~br status/interrupt in puts.) .;?, use of double buffering is most beneficial in situations where a peripheral device and the computer system are capable of transferring data at roughly the same speed. double buffering allows the fetch operation of the data transmitter to be overlapped with the store operation of the data receiver. thus, throughput measured in bytes or words-per-second may be greatly enhanced. if there is a large mismatch in transfer capability between the computer and the peripheral, little or no benefit is obtained. in these cases there is no penalty in using double buffering. ?, 2-1
2.1.2 double buffered input transfers in all modes, the pi/t supports doublebuffered input transfers. data that meets the port setup and hold times is latched on the asserted edge of h1 (h3). h 1 (h3) is edge sensitive, and may assume any duty cycle as long as both high and low minimum times are observed. the pi/t contains a port status register whose h 1 s(h3s) status bit is set anytime any input data that has not been read by.. ??$. the bus master is present in the doubl%buffered latches. the action of h2(h4) is programmable~$?,:?x ..,,*?$ may indicate whether there is room for more data in the pi/t latches or it may serve other purpqg+,> ., .? ~?:k, the following options are available, depending on the mode. \.31w:~ ~ i-t!. .,>. .x,\: * ,.;\,.,\$) ..: 1. h2(h4) may be an edgesensitive input that is independent of h1 (h3) and the ~@s$&~ of port data. on the asserted edge of h2( h4), the h2s ( h4s) status bit is set. it is @8s~$@by the direct method (refer to 2,3 direct methodlof rese~lng status), the-pin being ,. .:? asserted, or when the h 12 enable ( h34 enable) bit of the port general con~:$lkister is zero. 2. h2( h4) may be a general purpose output pin tfiat is always negated. t~&~~~${ h4s) status bit is always zero. ,* \,: ?*,\,. i;.3*s. .,...< $ l 3. h2( h4) may be a general purpose output pin that is always assert~d.$$&h2s( h4s) status bit is always zero. , ,\j.> l,li+~i t,yw,%t,:.i.]:,.y).. 4. h2( h4) may be an output pin in the interlocked input hands~~$~~~otocol. it is asserted when the port input latches are ready to accept new data. it is nxg?wasynchronously following the asserted edge of the h 1 ( h3) input. as soon as the inp~$latc%es become ready, h2( h4) is again asserted. when both double buffered latches are fo~~{?+~2( h4) remains negated until data is ~.-k.~>} ? ~? removed by a read of port a (port b) data regkte$ thus, anytime the h2( h4) output is asserted, new input data may be entered by.@~*~g h 1 ( h3). at other times transitions of ,, h1 ( h3) are ignored. the, h2s(h4s) status bit ls??&~ays zero. when h12 enable (h34 enable) is zero, h2( h4) is held qegated. ~~ y ,,t*.? ,., .<: f; ,, \ ., n, . ~.i;$ ,,,~ ~ k. ,* ~.,t:$ ,,, ~ 5. h2( h4) may bean output pin in t~$~~sd input handshake protocol. it is asserted exactly as , in the interlocked input protoc~@~@q&never remains asserted longer than four clock cycles. typically, a four clock cycle.~@fs generated. but in the case that a subsequent h1 (h3) asserted edge occurs bef~~~mination of the pulse, h2( h4) is negated asynchronously. thus, anytime after thej&&& edge of the h2( h4) pulse, new data maybe entered in the pi/t doublebuftered inpu~[~$,~s. the h2s( h4s) status bit is always zero. when h12 enable (h34 enable) is zero, h2(@~4~~js held negated. ., !<.! . . . ~!,* ,, .t:,j x:? ? -x$;* :;{. . a sample timing q~gr%m~~s shown in figure 2-1. the h2(h4) interlocked and pulse input handshake protocols are s~~~~$? the ,dmareq pin is also shown assuming it is enabled. all handshake pin sense bits a~e~~uked to?,be zero (refer to 4.1 port general control register (pgcr)); thus, the p}$$~re in the low state when asserted. due to the great similarity between modes, this timing:&$~~ayfi is applicable to all doublebuffered input transfers. ,, ?$~, la?. <<.,.,, ,,? ,{l:*., .$i\.,~<:, .> ~ ~, ~ . ..!. s ~,l~~poublebuffered output transfe~ ~me?pl/t supports double buffered output transfers in all modes. data, written by the bus master to the pi/t, is stored in the port?s output latch. the peripheral accepts the data by asserting h1 (h3), which causes the next data to be moved to the port?s output latch as soon as it is available. the function of h2( h4) is programmable; it may indicate whether new data has been moved to the out- put latch or it may serve other purposes. the h1 s( h3s) status bit may be programmed for two in- terpretations. first, the status bit is a one when there is at least one latch in the doubl~buffered data path that can accept new data. after writing one byte/word of data to the ports, an interrupt 2-2 <. .
, { ?- data register data register read read port data h1(h3) h2(h4) interlocked ?h2(h4) pulse dmareo the data has been transferred to the peripheral. t@*a194h3s) status bit is set when both output latches are empty. the programmable op~ons of .ti$~q#(h4) pin are given below, depending on the *+\\~l . mode. ?~i~,!~+c, >t,i .,, ,>;x. . . . . hz( h4) may be an edg+sensitive in~ut @n?:! ndependent of h1 ( h3) and the transfer of port data. on the asserted edge of h2( q4~k,the h2s( h4s) status bit is set. it is cleared by the direct method (refer to 2.3 direct ~$~~@d of rese~lng status), the reset pin being asserted, or when the hi 2 e~s~~%~m enable) bit of the port general control register is zero. h2(h4) may be a general-~$p$~~ output pin that is always negated. the h2s(h4s) status bit ,,., ~.>?., !;... !,,. is always zero. ?~:~~:,.: ,3:., .j:.i.,. . . . . . h2(h4) maybe a ge.o.~1-$urpose output pin that is always asserted. the h2s( h4s) status bit is always zero. ,,t~,~~)a~] kt~ h2( h4) may be{n ?@tput pin in the interlocked output handshake protocol. h2( h4) is asserted two clock ~~f~$~ter data is transferred to the doubl~buffered output latches. the data r~ mains stg~le??~~~ h2(h4) remains asserted until the next asserted edge of the hi (h3) input. at that ti&]~:,~2( h4) is asynchronously negated. as soon as the next data is available, it is tra~$~~fh to the output latches and h2(h4) is asserted. when h2(h4) is negated, asserted tr%~~t~ons on h 1 (h3) have no effect on the data paths. as is explained later, however, in ~~~+~$~s 2 and 3 hi does control the thre~state output buffers of the bidirectional port(s). the .,,,,$3.$$2s( h4s) status bit is always zero. when h12 enable (h34 enable) is zero, h2( h4) is held .-.>.> ~{.:. .f~ ..! ~?s.?..:,k-~:,.,l ,\s., negated. .~.:~,, 4,$):$$1,:,, >. ,,. , ~>., \\~\. $.4. 5. h2(h4) maybe an output pin in the pulsed output handshake protocol, it is asserted exactly as ~~.$ }: in the interlocked output protocol above, but never remains asserted longer than four clock cycles. typically, a four clock pulse is generated. but in the case that a subsequent h1 ( h3) asserted edge occurs before termination of the pulse, h2( h4) is negated asynchronously, thus shortening the pulse. the h2s( h4s) status bit is always zero. when h12 enable (h34 enable) is zero, h2( h4) is held negated.
a sample timing diagram is shown in figure 2-2. the h2( h4) interlocked and pulsed output hand- shake protocols are shown. the dmar eq pin is also shown assuming it is enabled. all handshake pin sense bits are assumed to be zero; thus, the pins are in the low state when asserted. due to the great similarity between modes, this timing diagram is applicable to all doubl%buffered output transfers. ? . ..$,:. data register data register ,.., ., , ,. c*.,,&*.*? ~.{t>q . . ..>..$. ~,., ..><, .x,$~~h. the pi/t has several means of indicating a need f&rservice by a bus master. f[rst, the processor ., may poll the port status ~egister. it contains &sta&s bit for each handshake pin, plus a level bit that always reflects the instantaneous state ot:%~~b$ handshake pin. a status bit is one when the pi/t needs servicing (i. e., generally when-,$h~~& master needs to read or write data to the ports) or ?when a handshake pin used as a sirn#.@sj$tus input has been asserted. the interpretation of these bits is dependent on the chosen ,,~?f@$&nd submode. ~~..:,..,+,l ?,,:, $:,t, ~, .>\&, , ,,.,. ,,, . . second, the pi/t may be @a~~#n the processor?s interrupt structure. as mentioned previously, the pi/t contains port ~.,,~~~,,$ control registers that configure the handshake pins. other bits in these registers enable ~fi???~terrupt associated with each handshake pin. this ,,interrupt is made ~ , .+.\:,- available through t~~~b~pirq pin, if the pi rq function is selected. three additional conditions are required for+~lr ~?~oi$be asserted:? 1 ) the handshake pin status bit is set, 2) the corresponding in- terrupt (servic#~~~:@st) enable bit is set, and 3) dma requests are not associated with that data transfer (h~~~~# ~3 only). the conditions from each of the four handshake status bits and cor- respondin$$i@tus bits are o red to determine ~. to clear the interrupt, the proper status bit must$~~~~red (see 2.3 direct method of resetting status). ?::!. p;. .:..,: ~>1~::> t~$tird method of requesting service is via the pc4/dmareq pin. this pin can be associated ?~$~~?double-buffered transfers in each mode. if it is used as a dma controller request, it can initiate kquests to keep the pi/t?s input/output doublebuffering empty/full as much as possible. it will not overrun the dma controller. the pin is compatible with the mcww direct memory access -;
2.2.1 vectored, prioritized port interrupts use of mc68000-compatible vectored interrupts with the pi/t requires the pirq and piack pins. when m is asserted while ~ is asserted, the pi/t places an 8-bit vector on the data pins do-d7. under normal conditions, this vector corresponds to the highest priority enabled active p~j interrupt source with which the dmareq pin is not currently associated. the most-signifi~~f~~~? bits are provided by the port interrupt vector register (pivr), with the lower ~0 bits su.~~l<~by prioritization logic according to conditions present when piack is asserted. it is impor~~~~~¬e that the only effect on the pi/t caused by interrupt acknowledge cycles is that the y@~~&f,.& placed on the data bus. specifically, no registers, data, status, or other internal states qf*~~$f1/t are af- fected by the cycle. ~ ~ .,,. ? ,, ;, ,+.., ~i~i?.~ < ?.?s,.. ,. . . ~ .,> *,;;{, \ ,. y ~everal conditions may be present when the= input is asserted toj~&~~~*. these conditions affect the pi/t?s response and the termination of the bus cycle. if the r~3+~@s no interrupt function selected, or is not asserting pirq, the pi/t will make no response 4*= (dtack will not be asserted). if the pi/t is asserting pirq when piack is received, ~~~ pl~y will output the contents of the port interrupt vector register and the prioritization bits. if }@j~,~r has not been initialized, $of will be read from this register. these conditions are sum~~~~e~ in table 2-1. ,<\*\? .$., -:!+ .? ?t$>. , ,!i$?- ~~,j*\ table 2-1. response to poti.f~!@rupt acknowledge by ? ~q\ m. i with prioritization bits. , i i ~.. ..,,. 1 *+ ,*v >? l the uninitialized vector is ~:q~~g$??eturned from an interrupt vactor register before it has been initialized. ..,$>~,$.< ->! ,>~~ ~><{. ?$<>? }\*!,:$.j :@; \ ??.i>i,\??? ?\$] ! , ~x>~,,, ~ ?$ the vector table entrie~ti~t~e pi/t appear as a contiguous block of four vector numbers whose .,,, common upper six q,~,;~~!brogrammed in the pivr. the following table pairs each interrupt source with the 2-bit valu,e~~roi~ided by the prioritization logic when interrupt acknowledge is asserted (see 4.2. port ser~l~~ request register (psrr)). ~.~ ::?:: ,. $~~? ,,<: ..1,> ,j~? ,:, ,?, ,< ,, ~, \$l h1 source ? 00 , h3 source ? ?1o *:& *?,*$ :.$$~ .i!?i!> \\, ~ ~. ~ -t: \, vr,~~ ?h2 source ? 01 h4 source ? 11 -s;n+,\ \ll,.\ ,,!;.., ,:,?:, y? .,,%;,!l f?.:je #~.~~autovectored port lnterru~ts ,,. ,, .~}>,, *..s .: }:,:.+ ,.,?,,,. ,,, ?~~autovectored interrupts use only the pin. the operation of the piit with vectored and !~~;$autovectored interrupts is identical except that no vectors are supplied and the pc6/piack pin can ,x ~ be used as a port c pin.
the direct memory access request (dmareq) pulse (when enabled) is associated with output or in- put transfers to keep the initial and final output latches full or initial and final input latches empty, respectively. figures 2-3 and 2-4 show all the possible paths in generating dma requests. see 4,2 port service request register (psrr) for programming the operation of the dma reques~., ?gx.. bit. $+*~t\. .,.$.1: \ ,,*,, \ ..s ,, ,tt.j\ ~ ;::. ~:~ ~{$ .::,,, .+, , i$t} ~,: dmareq is generated on the bus side of?the mc88230 by the synchronized* chip select. lf,~&$~- ~~i~.., ~,t+~x, ,/::. ditions of figures 2-3 or 2+ are met, an assertion of= will cause dmar eq to be as~kda+tiree pi/t clocks (plus the delay time from the clock edge) after = is synchronized. _i4#mains asserted three clock cycles (plus the delay time f~om the clock edge) and is then,~e~~d. $ :~.!t.\:?q; ..*, ?j$,~, dmareq pulses are associated with peripheral transfers or are generated::@~~@??kynch ronized* h1 ( h3) input. if the conditions of figures 2-3 or 24 are met, an assertion:~~~ h1 (h3) input will cause dmar eq to be asserted 2.5 pi/t clock cycles (plus the delay tim?$dm clock edge) after h1 ( h3) is synchronized. dmareq remains asserted three clock cycl~$~ly~the delay time from the clock edge) and is then negated. ,,, . -?.:, !,. ;,., ~,:, ?.k,~~,. !*,c \ ,, ?$:~,.l ,ti,, :: .;j ~ .? ,r ,..- {$:kt*? data in output latches ?.,.,, ,.z*: ?tt data in input latches [-y ? s[-y ~;t ?<>?i . ~.,:,+. \ bus write , no dma request ?~%eral provides data i no dma request ,? ?m)r>?&<~~?dma> a:,?:,l dma request .?j> $,. >* .:$ ~ { } no dma request ~~~,~al accepts data \@> ?odmarlb2read ,., !.* , *d.,\ ~ *:it$t.j..tt.? ~~ ~,.., . . . figure 2;+ m associated figure 2-4. dmareq .associated ~~$@tput,,transfers with input transfers \:$?>;*. \ l:!, ?t>. , ~,tj .$~:,..,, ~,, *,,, - .$ ,. in,,-?wmodes one or more handshake pins can be used as edgesensitive inputs for the sole pur- ,~$~~& setting bits in the port status register. these bits consist of simple flip-flops. they are set (to ?%) by the occurrence of the asserted edge of the handshake pin input. resetting a handshake status bit can be done by wfiting an 8-bit mask to the port status register. this is called the direct method of resetting, to reset a status bit that is resettable by the direct method, the mask must l synchronized means that the appropriate input signal ( h1, h3, or ~) has been sampled by tha pi/t on the appropriate edge of the clock (rising edge for h1(,h3) and falling edge for ~). refer to 1.4 bus interface operation for the exception concerning ~. if a bus access (assertion of fi} and a port access (assertion of h1(h3)) occur at the same time, ~ will be recognized without any delay. h1 (h3) will be recognized one clock cvcle later. (??--?
\ contain a one in the bit position of the port status register corresponding to the desired status bit. for status bits that are not resettable by the direct method in the chosen mode, the data written to the port status register has no effect. for status bits that are resettable by the direct method in the chosen mode, a zero in the mask has no effect. ,]!. ..::))-, . . . . . .,,1. ?., *.,,a,::~l. . }>.:,~$ .tii~?..}.~ \< ? ,,:.+, 2.4 handshake pin sense control /~ ,- ?\/,. t.~, *>:>,. , ,.<.:~?. .3. ~. .,,! :.b: ,.. . ~5,5\yl ? ++), the pi/t contains exclusive or gates to control the sense of each of the handshake mfl~~ether used as inputs or outputs. four bits in the port general control register may be ~~~r$fimed to determine whether the pins are asserted in the low- or high-voltage state. as ~~tfi@tier control registers, these bits are reset to zero when the reset pin is asserted, defaulli~ t~+asserted level to be low. ~;:?~i:;l . * ,*.. lk, j ., ~r> ,..,$,~, ,,.,:ici, !? ?? ~.~ *~*t: *. .* ?~,i?:t,ijt ? \\,;} :?\\ 2.5 enabling ports a and b l.!:{% %$:,;\t ?,?!\:>..,&t,. ?~.k:,. ?... certain functions involved with doubl~buffered data transfers, t~~bdshake pins, and the status ,$ .~}, bits may be disabled by the external system or by the progr~@&? during initialization. the port general control register contains two bits, h12 enable an~~~>dnable, which control these func- ?! tions. these bits are cleared to the zero state when the= pin is asserted, and the functions are disabled. the functions ?are the following: ,s.~t .$.? ?v~(% ,*: ?! :..:.?,, .:.!:, 1. independent of other actions by the bus m~~%er,~$r peripheral (via the handshake pins), the p1/7s disabled handshake controller is hel~$$#e ?empty? state; i.e., no data is present in the doubl%buffered data path. , ?~i.+ 2. when any handshake pin is used tq,~et asimple status flip-flop, unrelated to doublebuffered transfers, these flip-flops are hel&{~s&$ to zero (see table 1-1). 3. when h2(h4) is used in an,,~~%~}ed or pulsed handshake with h1 (h3), h2(h4) is held negated, regardless of the 4~t@ mode,? submode, and p~maw direction. thust for double buffered input transfers$:@~@rogrammer may signai a peripheral when the pi/t is ready to begin transfers by se~~$?~$%e associated handshake enable bit to one. ~ (.*.$,,,,?, >.,, *? ,., .~, ,, 2.6 port a and q~~$#inate registers ,, ?,,..,. ~ ? ,.j ;>.+iv:. ~-? in addition to thd~~$$t a and b data registers, the pi/t contains port a and b alternate registers. these regist~~$are~ead only, and simply provide the instantaneous ( non-latched) level of each port pin. they. ti$$~?~ effect on the operation of the handshake pins, doublebuffered transfers, status bits, or~~~her aspect of the p!/t, and they a}e mode/submode independent. refer to 4.7 port 2-712-8
& ~ ~*~.*. . . . . . . $,*, f !?}~f,?.(,!kt?., :*, ,. ~.:~l:%.. % .\ .ct~p i\: . section 3 ?. ll$:<. (,,, , ~$:.~ ??~it. .t.\\w ?kli,; ?? t$,,.t:$!>!;& ?+ port modes .>)> .!, ~ ,,,,. < ,.:$? t, ?+ ..? .,:?: ,,:.,j? . . ,. ,,..$ ?.$.$ . ~, ,yx:{?!i.3~ ~\ ,\lv? s$;%\ \*,*g ? this section contains information that distinguishes the various port modes aq~~~brnodes. general characteristics common to all modes are defined in section 2 port ~~w~ information and conventions. a description of the port a control register (@$$@} and port b control register (pbcr) is given before each mode description. after each s~~wde description, the pro- grammable options are listed for that submode. !* ~\ ~,,,, ,\ ,, \<:y.. .>. . :i:>3b,*::31:,t, .<, ,~j,*, }.s ,\r . . . . >\,t ?., \* !!, !., 3.1 port a control register . . .*(j, ,,~ ,,.:.ss ?,,? .\:,p,:.?? ~$ijj ~:{ ? port a control regi~#~, (p~cr) ..,! ,,> 7 6 5 4 ,$y:t:$, ?s* 2 1 0 \~ ?..:$, ., ~? \?!\~t\ .s>t$..:~ h2 h1 hi port a :+{\~.,,j&\p:*y:\\ interrupt svcrq status submode h2 contro?;; ?? enable enable control ,., the port a control register, in conjunc~d~,with the programmed mode and the port b submode, controls the operation of port a and t~$~~ntishake pins h1 and hz. the port a control register con- tains five fields: bits 7 and 6 specif~~~~~rt a submode; bits 5,4, and 3 control the operation of the h2 handshake pin and the h2s -w<$$$bit; bit 2 determines whether an interrupt will be generated when the h2s status bit goes?watie; and bit 1 determines whether a service request (interrupt re- quest or dma request) wil&,~~~~? bit o controls the operation of the his status bit. the pacr is always readable and wfi~$h~y?? ,}, t, .?~,:?: ? \2f** .~>i.k, .,,:<.. port b control register (pbcr) :!:.$,+,, . . t.~<,, . . . . . . . \ ,? .?? 7 6 5 4 3 2 1 0 h4 h3 h3 port b interrupt ?svcrq status submode h4 control enable enable control the port b control register specifies the operation of port b and the handshake pins h3 and h4. the port b control register contains five fields: bits 7 and 6 specify the port b submode; bits 5,4, and 3 control the operation of the h4 handshake pin and h4s status bit; bit 2 determines whether an inter- rupt will be generated when the h4s status bit goes to a one; bit 1 determines whether a service r~ quest (interrupt request or dma request) will occur; and bit o controls the operation of the h3s status bit. the pbcr is always readable and writable. there is never a consequence to reading the register. 3-1
all bits are cleared to zero when the ~ pin is asserted. when the port b submode field is rel~ ? vant in a mode/submode definition, it must not be altered unless the h34 enable bit in the port ?general control register is clear (see table 1-3 located on foldout pages 1 and 2 at the end of this document). ?,:, ,., ~ 3.3 mode o ? unidirectional &bit mode .\. . . . ,,, .i .?%,,%.. .*<* ,$,+ ,> >,~$> -~:. in mode o, ports a and b operate independently. each maybe configured in any of its three p~~~w ?&? . . ~r submodes: ,..?~!+~ ~,m~ ,, ~<~~)s.$ ~. +?, .$>? submode 00 ? pin-definable doublebuffered input or singlebuffered output $~.<~?.;vr;? submode 01 ? pin-definable double buffered output or non-latched input $:$~~i~? submode 1x ? bit 1/0 (pin-definable singlebuffered output or non-la~$i~d ?~?put) . . ..>, ,, ~.,, ~\~~. ~i,<:! ?k:.%:jj ?handshake pins hi and h2?are associated with pok a and configured by,,pg@$/*ming the po~ a control register. (the h 12 enable bit of the port general control register~~~q~es port a transfers. ) handshake pins h3 and h4 are associated with port b and configurq b??~rogramming the port b control register. (the h34 enable bit of the port general control rek enables port b transfers. ) the port a and b data direction registers operate in all three su~rn@&s. along with the submode, ,!;j ::), ,* .:?\\ they affect the data read and write at the associated data reg~t~~~cording to table 3-1. they also enable the output buffer associated? with each port pin. ~:ke dmareq pin may be associated with ~~ either (not both) port a or port b, but does not functio~$~tfie bit 1/0 submode (submode 1x) is pro . . grammed for the chosen port. +:,, .?:. $:] .! ~$.~, . . ~?- $,~ ,, ,,,$: ,$::?> ?~$i 1?$,}1:: :,>.,}i~t,. +::>,, . . . table 31. ,~d~$ po~ data paths ~,? ~tkit\ :,. , ,,.. ,., write port al b mode data rq?mer ddr=x fol, s.b. note 1 fol note 3 10 l/fol, d.b. note 2 ,, fol note 3 fol, s.b. note 1 abbreviat~ns: $ iol ~?:iti~$:6utput latch s.b. - single buffered fqa *v ~jkl output latch d.b. - double buffered ~r%~ ~nal input latch ddr - data direction register ??? .,:.. nx&~: data is latched in the output data registers (final output latch) and will ~? ,,,~ *?.,. \ ,&o\ single buffered at the pin if the ddr is 1. the output buffers will be turned ~i , ? ?,*i:*: $!? ,:, \ ,~..? ?., ..r, ,. off if the ddr is o. \ . . ~.:> .+ e ~~ },:.* ~,pf:,, note 2: data is latched in the double-buffered outpui data registers. the data in the ?.&,& . +:.\)\>~ ..\>., ?? ,*:&\?*> finel output latch will appear on the port pin if the ddr is a 1. :;:, .$! y+ note 3: the output drivers that connect the final output latch to the pins are turned .,t> ..*? ??::~+, , .*j > ? on. >$)? . ;$; ?}i*?*a*. ?k. /s :;.*. .+, ttltt!>,$.~ ,.~... . ?~~~$.l subrnode 00 ? pin-definable doubl+buffered input or singlebuffered output ?in mode o, doublebuffered input transfers of up to eight bits are available by programming sub mode 00 in the desired port?s control register. data that meets the port setup and hold times is latched on the asserted edge of h1 (h3) and is placed in the initial or final input latch. h1 (h3) is edge sensitive and may assume any duty cycle as long as both high and low minimum times are observed. the pi/t contains a port status register whose h 1 s( h3s) status bit is set anytime any in- put data that has not been read by the bus master is present in the doublebuffered latches. the ac- tion of h2(h4) is programmable. the following options are available: .,
1. h2(h4) maybe an edg+sensitive status input that is independent of h1 (h3) and the transfer of port data. on the asserted edge of h2( h4), the h2s(h4s) status bit is set. it is cleared by either the reset pin being asserted, writing a one to the particular status bit in the port status register (ps r), or when the h12 enable (h34 enable) bit of the port general register is clea:f$$ 2. h2(h4) maybe a general-purpose output pin that is always negated, in this case the h2s$$m~$~ status bit is always clear. .,:. .?t , .~t:tt: ?:.r,~:,,.o,>, 3, h2(h4) maybe a general-purpose output pin that is always asserted. in this case th~l~$\~4s) status bit is always clear. , ~~i~ , ~:, ..,,, . $f+g ;..?, ~. 4. h2( h4) may bean output pin in the interlocked input handshake protocol. it-\{$?$##rted when the port input latches are ready to accept new data. it is negated asynchro~uwfollowing the asserted edge of the h1 (h3) input. as soon as the input latches becom~@~dy, h2(h4) is again asserted, when the input doublebuffered latches are full, h2(h4) re~~j[~fiegated until data is removed. thus, anytime the h2( h4) output is asserted, new iq~~~~:kfa may be entered by asserting h1 (h3). at other times, transitions on h1 (h3) are iqnnor~: ?the h2s( h4s) status bit is always clear. when h12 enable (h34 enable) in the por&&~@ral control register is clear, h2(h4) is held negated. ?j ,$*, q & , ,..~,,, ../ , .,,.:, ,. 5. h2( h4) may bean output pin in the pulsed input handd~ks?$rotocol. it is asserted exactly as in the interlocked input protocol above, but nev~ refiins asserted? longer than four clock cycles. typically, a four clock cycle pulse is gene~$~~! but in the case of a subsequent h1 (h3) asserted edge occurring before termination :f$~h~$pulse, h2( h4) is negated asynchronously. thus, anytime after the leading edge of t~@j}~&fi4) pulse, new data may be entered in the doublebuffered input latches. the h2s( h4s>wtatus bit is always clear. when h12 enable (h34 , for pins used as outputs, the data ~~%~%nsists of a single latch driving the output buffer. data written to the port?s data registert:i$~,,~?bt affect the operation of any handshake pin or status bit. output pins may be used indep.~:w~ of the input transfers. however, read bus cycles to the data register do remove data frorn?~,&@}brt. therefore, care should be taken to avoid processor instruc- 1 0 1 output pin ? as;erted, h2s is always clear. 1 1 0 output pin ? interlocked input handshake protocol, h2s is always clear. 1 1 1 output pin ? pulsed input handshake protocol, h2s is always clear. pacr 2 ) ,, 0 .? .? 1 h2 interrupt enable the h2 interrupt is disabled. the h2 interrupt is enabled.
pacr o x pbcr 76 00 pbcr 543 oxx 100 101 110 111 pbcr 2 0 1 pbcr 1 0 1? pbcr o x programmable options mode o ? port a submode 00 and port b submode 00 (sheet 2 of 2) h1 svcr enable the h1 interrupt and dma request are disabled. the hi interrupt and dma request are enabled. 3.3.2 submod~~o1. -*~in-definable double buffered output or non-latched input ,,<., :: , ,}) in mode o(,$~$$~w?~uffered output transfers of up to eight bits are available by programming sub- . mode 01 @$b~~esired port?s control register. the operation of h2 and h4 may be selected by pro- gram~rk@$%~ port a and b control registers, respectively. data, written by the bus master to? the p1/t~[ is ~?ored in the port?s output latches. the peripheral accepts the data by asserting h1 (h3), @&&$~auses the next data to be moved to the port?s output latch as soon as it is available. g:*s .??~p :$, ?,.~>:,!,k. ??~~he h1 s(h3s) status bit may be programmed for two interpretations: 1, the hi s( h3s) status bit is set when either the port initial or final output latch can accept new data. it is cleared when both latches are full and cannot accept new data. 2. the h 1 s(h3s) status bit is set when both of the port output latches are empty. it is cleared when at least one latch is full. the programmable options of the h2(h4) pin are: 1, h2(h4) may be an edge-sensitive input pin independent of h1 (h3) and the transfer of port data. on the asserted edge of h2( h4), the h2s( h4s) status bit is set. it is cleared by either the 3-4 k?
* . reset pin being asserted, writing a one to the particular status bit in the port status register (ps r), or when the h 1 (h2) enable (h3(h4) enable) bit of the port general control register is clear. 2. h2(h4) maybe a general-purpose output pin that is always negated. the h2s(h4s) statuq@$~f is always clear. ~c}~, ,:,,, $:? ~$+::f~~ .,+? 3. h2(h4) maybe a general-purpose output pin that is always asserted. the h2s[h4sja~~~@g$bit is always clear. $~$,-~?? *j ? >?, . ,.,,. l,,. 4. h2( h4) may be an output pin in the interlocked output handshake pro~q&.;#2(h4) is .,- :,j,, $*:$ asserted two clock cycles after data is transferred to the doublebuffered on~~~~ latches. the data remains stable at the port pins and h2(h4) remains asserted until ~q$~ex?asserted edge of the h 1 ( h3) input. at that time, h2( h4) is asynchronously negated:,,~~;~~en as the next data is available, it is transferred to the output latches. when h2( h4) is!;w@?led, asserted transi- tions of h 1 (h3) have no affect on data paths. the h2s(h4s) st~~j~t?is always clear. when h12 enable ( h34 enable) is clear, h2( h4) is held negated. .,$+ ?+$. 5, h2(h4) maybe an output pin in the pulsed output handsh~[$$~tocol. it is asserted exactly as in the interlocked protocol above, but never remains @#,~r~#d longer than four clock cycles. typically, a four clock pulse is generated. but in the@e?f~at a subsequent h 1 (h3) asserted ?i edge occurs before termination of the pulse, h2( ~~) is fl%gated asynchronously shortening the ; --- pulse. the h3s(h4s) status bit is always clear+w~&n h12 enable (h34 enable) is clear h2( h4) is held negated. ,x , $& ~): , ~, ,?.?}>i,r:? ~$~. .~t:,:,s.(~ ,:;.~.$. ~j~, for pins used as inputs, data written to the as~p~ated data register is doubl=buffered and passed to the initial or final output latch, ?but, t~~output buffer is disabled. ,&,.~\ ?.. + at% ,,,, .?, .:., h.i?..!,>~ ~>,.:~t. ~>, .<:{: . . . ,. programm*~t$pfions mode o ? poti a submode 01 ,.~@/,@fi b submode 01 (sheet 1 of 2) .\:*, ,?. ?~> ?$ :~>~,>,il ., pacr ~f~ ~f \ ., ki,,w\,*? 76 po_$,,@~.~#mode 01 submode g~. ??$? ?? >,< i~<.+ .*?y+, ,1$~ .?. ..,li::$ ~\:j\ ., pacr . . . . . . i ~ -.,f,. ,,i~ 543 ,,\t ? f: * tii control .,, ?~?$)$::~ ..; o x x ,,(n~?n@n ? edgesensitive status input, h2s is set on an asserted edge. 1 0 ~l$&&*ut pin ?-negated, h2s is always cldar. ?1 ~~+ l%;~a:~~tput pin ? asserted, h2s is always clear. .:$~~??~l. ?output pin ? interlocked input handshake protocol, h2s is always clear. ,3.;$ 1~~ output pin ? pulsed input handshake protocol, h2s is always clear. ,:y .1, r *:?x.? ? .*:l ,,:.,,, .,.., ?*$$~?pacr ry:. ,yi. ., ~, . t{, /:.,.* !${ 2 h2 interrupt enable .!, . 0 the h2 interrupt is disabled. 1 the h2 interrupt is enabled. pacr 1 h1 svcrq enable o the h1 interrupt and dma request are disabled. 1 the h1 interrupt and dma request are enabled. 1 ? 3-5
1 pbcr 76 01 pbcr 543 oxx 100 101 110 111 pbcr 2 0 1 ; pbcr 1 0 ,?1? pbcr ,0 0 1 programmable options mode o ? poti a submode 01 and pofl b submode 01 (sheet 2 of 2) h1 status control the his status bit is set when either the port a initial or final output latch can accept new data. ltiw~~:i is clear when both latches are full and cannot accept new data. ,..\.?\.?,: ? ,, ~?:k,< the h 1 s status bit is one when both of the port a output latches are empty. it is clear wh,~$g~~? least one latch is full. i :\+\. ,:,$:1 \> , ,,! ,:i~~,i !, ? $.:(.2,? ? *, .,,:> ,, ,. ,:. ~t~ , la. , -:s ,t:, ,x.. \ , .,:?:?, port b submode .s:.. \:$:,,,%,>, . ~<$,,tk.? ~. ,tj:\\ ~, ?~bt$:t~,, :;$ submode 01 . . ...4).,,,?:,+ i ,, ,{ ~ !,, h4 control lndut din ? edgesensitive status input, h4s is set on an asserted wf output pin ? negated, h4s is always cleared. -4::$:,,,\ ,.4,:l output pin ? ~:+i= . ,y. asserted, h4s is always cleared. .! ~...,$$. 4t*.*~>l$,i output pin ? interlocked input handshake protocol, h4s iq~~~$s cleared. output pin ? pulsed input handshake protocol, h4s is afms~leared. ?:,~. >,> the h3 interrupt and dma re~@$~redisabled. the h3 interrupt and dma, ~~~es$ are enabled. ~,:+>< >s ?.* >. ~.::>+, ..+!,,,..,,. .?$,, .v;4 \ ,. .4,.. ??~ + * $p/*~:t, h3 status $o:~f.~ - the h3s status bi~ts *%&hen either the port b initial or final output latch can accept new data. it is clear when b~l~l~ai$hes are full and cannot accept new data. ,- the h3s stat~$ ?a! ?;s one when both of the port b output latches are empty. it is clear when at least one .j#%?*wjyull. ?~~?~. ${$ s, *\t,,: (,* 3.3,3 subrn&;f@ - bit 1/0 (pin-definable singlebuffered output or non-latched input} in mode,.~$~&k bit 1/0 is available by programming submode 1x in the desired port?s control regist~txiw~submode is intended for applications in which several independent devices must be con~~dli@& or monitored. data written to the associated (input/output) register is single buffered. if ~~~~~%~direction register bit for that pin is a one (output), the output buffer is enabled. if it is a zero ~~u~), data written is still latched, but is not available at the pin. data read from the data register is ?:,, ~ ,...\,: ~, s;fti~ instantaneous value of the pin or what was written to the data register, depending on the con- tents of the data direction register, h1 (h3) is an edgesensitive status input pin only and it controls no data related function. the h1 s(h3s) status bit is set following the asserted edge of the input waveform. it is cleared by either the reset pin being asserted, writing a one to the associated status bit in the port status register (psr), or when the h12 enable (h34 enable) bit of the port general control register is clear. h2 may be programmed as: 1. h2(h4) maybe an edgesensitive status input that is independent of hi (h3) and the transfer of i.. port data. on the asserted edge of h2(h4), the h2s(h4s) status bit is set. it is cleared by either the reset pin being asserted, writing a one to the particular status bit in the port status 3-6 q
register ? clear. psr), or when the h12 enable (h34 enable) bit of the port general control register is 2. h2(h4)may beageneral-purpose output pinthat isalways negated. lnthiscase the h2s(h4s) status bit is always clear. >:>, h4 interrupt enable interrupt is disabled. interrupt is enabled. h3 svcrq enable interrupt is disabled. interrupt is enabled. 3-7
programmable options mode o ? pon a submode 1x and poti b submode 1x (sheet 2 of 2) pbcr o h3 status control x h3 is an edgesensitive status input, h3s is set by an asserted edge of h3. .-: \.r*,, :..$:,,*:,.>.:.,$ ? !-:t:,?:?.~$~? ~*.~\?i:\.? tt$> \ ,.r*, 3.4 mode 1 ? unidirectional 16 bit mode j, ~, .:.,;,.,. ~ . . . ,,~$;;l ?*~i/},3\l , .,, .~,):~.? ?,. in mode 1, ports a and b are concatenated to form a single 16-bit port. the port b sub.~@~$~eld ~j?.s.::t. controls the configuration of both ports. the possible submodes are: .*? . ...+>. .< ?j? . ..?. . . . .::$(:,. . . . . . port b submode xo ? ?? ?g;?, ?? pin-definable doubl&buffer.ed input or singlebuffered &~~ut port b submbde xl ? pin-definable doubl&buffered output or non-latc~$$+~put \ ~1 ,\:$i ~. ?~..$ ,$j,\,\ handshake pins h3 and h4, ?configured by programming the poti b contrd;f~@ier, are associated with the 16-bit double buffered transfer. these 16-bit transfers are e%$~% by setting the hw enable bit in the port general control register ( pg cr). handshake @@~h tand h2 may be used as \ .s,?:.>, , simple status inputs not related to the l&bit data transferor h2 .~a~~e an output. enabling of the .. -,, hi and hz handshake pins is done by setting the h12 enable bjt~~t,@ port general control register. the port a and b data direction registers operate in each sub?~~de. along with the submode, they ( affect the data read and written at the data register a+.rdin~ to table 3-2. the data direction register also enables the output buffer associated wi~e?~h port pin. the dmareq pin may be ?associated only with h3. o,,~:tl*~,p ,$.. :>;:.. ?.$ .~:$>s:*,~,r ?1::... ~., , . . . . . . . . wine port al b mode register note 3 d. b., d. b., note 1 note 1 ,\&, k ::: ,,,1 ~ register is later written, }ort a data is? transferred to 10l/ fol .not&2: data is latched in the output data registers (final output latch) and will be y!. single buffered at the pin if the ddr is 1. the output buffers will be turned ~s, off if the ddr. is 0. note 3: the output drivers that connect the final output latch to the pins are turned on. abbreviations: iol - initial output latch s .b. ? single buffered fol - final output latch d.b. - oouble buffered fil - final input latch ddr - data direction register mode 1 can provide convenient high-speed 16-bit transfers. the port a and port b data registers are addressed for compatibility with the m c6boo0 move peripheral ( movep) instruction and with the mc6b4w direct memory access controller (dmac). to take advantage of this, port a should con-, tain the most-significant byte of data and always be read or written by the bus master first. the interlocked and pulsed handshake protocols, status bits, and dmareq are keyed to the access of port b data register in mode 1. transfers proceed properly with interlocked or pulsed handshakes when the port b data register is accessed last.
3.4.1 port a control register port a control register (pacr) 7 6 5 4 3 2 1 0 h2 h1 h1 .-: \.:$,, port a ~.s:$.-,:: !;:?.::., interrupt svcrq status \r., .>\ submode ,4-j. .-,> h2 contr61 enable enable control ,p?* ...i,~~:,. - , ~a ~ *y ? $+,..:,i.r~ ,~+~,~ \ the port a control register, in conjunction with the programmed mode and the port%,~$~~mode, controls the operation of port a and the handshake pins h1 and h2. the port a contr,@t,ge@ler con- tains five fields: bits 7 and 6 specify the port a submode; bits 5,4, and 3 control the~~wtion of the h2 handshake pin and, h2s status bit; bit 2 determines whether an interrupt wi~#&:~d$erated when the h2s status bit goes to one; bit 1 determines whether a service reque:~~$~$terrupt request or dma request) will occur; and bit o controls the operation of the h1 s stat~ w&the pacr is always readable and writable. there is never a consequence to reading the r@&~~. :ji:\~,$), .:,~y>,,, \ .> . .,\lt > ?+::8 all bits are cleared to zero when the reset pin is asserted. wh~$tie port a submode field is rele- $:. \ ..1?: ~. vant in a mode/submode definition, it must not be altered .m$ the h12 enable bit in the port general control register is clear (see table 1-3 located on,jpl?~,gt pages 1 and 2 at the end of this ,., .i document). altering these bits may give unpredictable,~e~~fis if the h12 enable bit in the pgcr is ; set. ?~ :::}.. -. .-! ~ ,+$> ,$.,,? :.: ., ~.?:~ > .!, .?. ,. .?>, ,$ ,j$b v... ,,). :,:)$c~p.. 3.4.2 port b control register .w:.k.,.};;:>y*, ,. . . . . ,. .,~?x ?*i> \ poti b c:pntml register (pbcr) ,7 6 ~ >?~$t,, ~ , ~! 3 2 1.0 . . , ~ }i,l., ~$<.i~.\.$,\,f,t\><3. h4 h3 h3 pofl ~ .$> ,*;*:+? ?? : interrupt svcrq ? status submode ,jk? :ig:v< h4 control enable enable control . ,i, .j..i. * ~:~+ y* i+ the port b control register s~~m~~s the operation of port b and the handshake pins h3 and h4. the port b control register co~~~~$five fields: bits 7 and 6 specify the port b submode; bits 5,4, and 3 control the operation o$~~h~. h4 handshake pin and h4s status bit goes to a one; bit 1 determines ?whether a service r~:u$?~?(interrupt request or dma request) will occur; and bit o controls the operation of the,~&~kblus bit. the pbcr is always readable and writable. ?,.\:.\, ,, j$* ~f. ,p:$ ~ ,.: all bits are ,&~~ to zero when the reset pin is asserted. when the port b submode field is rel~ e ~:.$:ti:?~ vant in ,~*~q&/submode definition, it must not be altered unless the h34 enable bit in the port genera~f~?~ol register is clear (see table 1-3 located on foldout pages 1 and 2 at the end of this do$$kwnt). altering these bits may give unpredictable results if the h12 enable bit in the pgcr ?is ,,dq,p$x,b,) ? .* .,;~>: .82$~:t:+$t . . . .. *>,, 1. h4 may be an edgesensitive status input that is independent of h3 and the transfer of port data. on the asserted edge of h4, the h4s status bit is set. it is cleared by either the r eset pin being asserted, writing a one to the particular. status bit in the port status register (ps r), or when the h34 enable bit of the port general control register is clear. 2. h4 maybe a general-purpose output pin that is always negated. in this case the h4s status bit .~+, is always clear. ?!,:,8., +,?:s.;~y.. ,j:$i,:,t 3. h4 maybe a general-purpose output pin that is always asserted. in this case the h4s statu~~i~}-x? ,,,?...>> ~.d,~f is always clear. et...,. ,. $*?, ,, ,./,>,,,? 4. h4 maybe an output pin in the interlocked input handshake protocol. it is asserte$~~,~~b~?he .~?:? >, *$$:, port input latches are ready to accept new data. it is negated asynchronously,,/mw~g the asserted edge of the h3 input. as soon as the input latches become re~~i~$t~ is again asserted. when the ,input doubl~buffered latches are full, h4 remains ne~@ until data is removed. thus, anytime the h4 output is asserted, new input data may,~~~tered by assert- ing h3. at other times transitions on h3 are jgnored. the h4s status m.~~~,@ays clear. when h34 enable in the port general control register is clear, h4 is held a~$d. 5. h4 maybe an output pin in the pulsed input handshake protoco~$~~j~.,asserted exactly as in the interlocked input protocol above, but never remains assert~q~er than four clock cycles. typically, a four clock cycle pulse is generated. but in th%q~x~~at a subsequent h3 asserted edge occurs before termination of the pulse; h4 is nrrg~%.@ asynchronously. thus, anytime after the leading edge of the h4 pulse, new data ma~?s~, entered in the doublebuffered input latches. the h4s status bit is always clear. whe~??~~?knable is clear, h4 is held negated. ,+ 1-.! ,? ::$), ?,,!: , ?!,, for pins used as outputs, the data path consists o~~tkngle latch driving the output buffer. data written to the port?s data register does not af$ect the operation of any handshake pin, status bit, or any other aspect of the pi/t. thus~? outpq~~~ may be used independently of the input transfer. 4$.?, , .$,,& , ,:?\ ,,:? ,\. 3. h2 may b,$$.g~n-erai-purpose output pin thatis always assefled. the h2s status bit is always - . . ,. (, i ., . . %.
pacr 76 00 pacr 543 oxx lxo 1x1 pacr 2 0 1 pacr ,1 0 1 pacr o ? x pbcr ?76 00 pbcr 543 oxx 100 101 110 111 pbcr .+ \ programmable options mode 1 ? port a submode xx and poti b submode xo pbcr o h3 status control x the h3s status bit is set anytime input data is present in the doubl+buffered input path. -
in mode 1 submode xl, double-buffered output transfers of up to 16 bits may be obtained. data is written by the bus master (processor or dma controller) in two bytes. the first byte (most signifi- cant) is written to the port a data register. it is stored in a temporary latch until the next byte is writ- ten to the port b data register. then all 16 bits are transferred to one of the output latches of ports a , and b. the dmareq pin may be used to signal a dma controller to transfer another word to thet~$jk:,, port output latches. (the mc6b450 dmac can be programmed to perform the exact transf~y@j,+ ~ needed for compatibility with the pi/ t.) h4 may be programmed as: +t+~;k,tyr 1, h4 may be an edgesensitive status input that is independent of h3 and the transf~?~s~$~rt .,*,;.. . . . . data. on the asserted edge of h4, the h4s status bit is set. it is cleared by either th~- pin being asserted, writing a one to the particular status bit in the port status re*~~~~(~sr), or when the h34 enable bit of the port general control register is clear. ,,::, ..::>,,,,. ,., ?.$i ? 2. h4 may be a general-purpose output pin that is always negated. in this cf~~~~h4s status bit is always clear. \ \. : . ...? , ~i~> > ??.?.,.$ $\, ,:<: 3. h4 maybe a general-purpose output pin that is always asserted. in t$~:!~~e the h4s status bit is always clear. \:. ,.:. $?~::,i 4. h4 may be an output pin in the interlocked output handsp~$~$r~tocol. h4 is asserted two - clock cycles after data is transferred to the doubl*buffer<@@,~~@ut latches. the data remains ( stable at the port pins and h4. remains asserted until the &$t asserted edge of the h3 input. at that time, h4 is asynchronously negated. as soon a$~e n&xt data is available, it is transferred to the output latches. when h4 is negated, asse~~@t~~*nsitions of h3 have no affect on data paths. the h4s status bit is always clear. whe~& enable is clear, h4 is held negated. .i~~: ~:+.~. .+ 5 h4 may be an output pin in the pulsed output*~;~hdshake protocol. it is asserted exactly as in the interlocked protocol above, but n~~er.$$ernains asserted longer than four clock cycles. typically, a four clock pulse is? genera$%,+but in the case that a subsequent h3 asserted edge ?? occurs before termination of the,~~j~$h h4 is negated asynchronously shortening the pulse. the h4s status bit is always cl.@~@&]when hw enable is clear, h4 is held negated. ~.y\::l> ,,<.,> \+&,, ~.1,,, .,. q:t \* the h3s status bit may be pr~~@&ed for two interpretations: ~:1,,+ 1. the h3s status bit is ~~t %~$n either the port initial or final output latch can accept?new data. it is clear when bo~q~$t,$@es are full and cannot accept new data. 2. the h3s status b~js~$et when both of ?the port output latches are empty. it is clear when at least one latcw~s~fll~ ?~,~:, .,??? .,,,$, .,.. ~$ .$:) the program~~~~,p?options of the h2 pin are: 1. h2 ~+~~~$an edge-sensitive input pin independent of h1 and the transfer of port data. on the a,,s~$f@edge of h2, the h2s status bit is set. it is cleared by either the reset pin being ::@s#med, writing a one to theparticular status bit in the port status register (psr), or when the ,~$~,,~1$ enable bit of the port general control register is clear. ~%,.~$~?~2 may be a general-purpose output pin that is always negated. the h2s status bit is always ,,.. . . . . . ?s ? r clear. .?t,: ?} 3. h2 may be a general-purpose output pin that is always asserted. the h2s status bit is always clear. 3-12 . . ( . . . . .
for pins used as inputs, data written to either data register is double buffered and passed to the initial or final output latch, as usual, but the output buffer is disabled (refer to 3.3.2 submode 01 - pin-definable doubl&buffered output or nom latched input). . ,.< \, t . 543 ~: ~ ,,, r4 control ,\,qy o x x ,,jn~ui@ln - edg~sensitive status input, h4s is set on an asserted edge. 1 0 ?,a?~~&ii*ut pin ? negated, h4s is always cl~ared, 1 q:,~;*,l;@tput pin ? asserted, h4s is always cleared. ijv+ ~. ?output pin ? interlocked input handshake protocol. ,@j,j:~:3:l,#~? output pin ? pulsed input handshake protocol. .]}, ~~>:$,?#bcr lr+:~~..?? ~ 2 h4 interrupt enable o the h4 interrupt is disabled. 1 the h4 interrupt is enabled. ) ?-.? 313
programmable options mode 1 ? port a submode xx and poti b submode xl (sheet 2 of 2) pbcr 1 h3 svcrq enable o the h3 interrupt and dma request are disabled. 1 the h3 interrupt and dma request are enabled. pbcr ?&., ? j*~~>, , . ,\t ,%=>,>):? o h3 status control ,\.>,.:.t: ? !?~s,.>j, , *;?3,.,n..>::3, 0 the h3s status bit is set when either the initial or final output latch of ports a an~~~,,;~m~ accept new data. it is clear when both latches are full and cannot accept new d$?%?y~?~~ .}, 1 the h3s status bit is set when both the ini~al,and final output latches of ports r w&,@are empty. the h3s status bit is clear when 61 least one set of output latches is full. .:~,~ ?+ -,... *3.*$. . ,? ,, ,)!:.:. .$?.i?*,t ;}~~ ~ ~t ..~(~> 3.5 mode 2 - bidirectional 8-bit mode ? . ,.~ . . . . .i~~: , ~,$\. ~ \ ,.!/., .?.:~$ , ,.>$$ ?.$,+, ,, -.,!? in mode 2, port a is used for bit 1/0 with no associated handshake p~ns%~fi b is used for bidirec- tional 8-bit doublebuffered transfers. h1 and h2, enabled by the ~$~;~~able bit in the port ge~eral control register, control output transfers, while h3 and h4, e~b$uy by the port general control register bit h34 enable, control input transfers. the instantan.~$pad~ection of the data is determin- ed by the h1 handshake pin. the port b data direction re~s?&:js not used. the port a and port b submode fields do not affect pi/t operation in mode 2.:?+$., . ,,! .,.,, ~:,,:, ?s ..?, j> .p~ * 3.. ?;:8 ~ ~.~. ><:\, ., . ..><.. !.j 3.5.1 port a bit 1/0 (pin-definabie .singl+buffer&@tput or non-latched input) ..s. mode 2, port a performs simple bit 1/0 with::go @%ociated handshake pins. this configuration is in- :, tended for applications in whichseveral??i n,@~ndent devices must be controlled or monitored. data ~, written to the port a data register is si~~@~~ffered. if the port a data direction register bit for that ,?; pin is set (output), the output buffeq$~:~~abled. if it is zero (input), data wtitten is still latched but not available at the pin. data rea~i~~~~$fie data register is either the instantaneous value of the pin (if data is stable from cs assert@~*q@~ack asserted, data on these pins wilt be 9uaranteed valid in the data register) or what ~~~~r]tten to the data register, depending on the contents of the port a data direction register. t.h&,i~summarized in table 3-3. ,,~i ?~ *l:.\t.*.::. )..:!,:$ :,i ..,? t!:, 3.5.2 port b ? doublebuffered bidirectional data the output buffers of port b are controlled by the level of h1. when h1 is negated, the port b out- put buffers (all eight) are enabled and the pins drive the bidirectional bus. generally, h1 is negated by the peripheral in response to an asserted h2, which indicates that new output data is present in the doublebuffered latches. following acceptance of the data, the peripheral asserts h1, disabling the port b output buffers. other than controlling the output buffers, h 1 is edg~sensitive as in other modes. 3-14 :
,< 3.5.2.1 double-buffered input transfers. port b input data that meets the port setup and hold times is latched on the asserted edge of h3 and placed in the initial input latch or the final input latch. h3 is edgesensitive, and may assume any duty-cycle as long as both high and low minimum times are observed. the pi/t contains a port status register whose h3s status bit is set anytime any input data that has not been read by the bus master is present in the doubl~buffered latches t~e action of h4 is programmable and can be programmed as: ,t,!\?$qy- 1. h4 may bean output pin in the interlocked input handshake protocol. it is asserted ~~~~$~e port input latches are ready to accept new data. it is negated asynchronously f~~$~t~g the asserted edge of the h3 input. as soon as the input latches become read~~,~l~$s again asserted. when the input doubl%buffered latches are full, h4 remains negs$g~l,wtitii data is removed. thus, anytime the h4 output is assefled, new input data may.~e ?%,~$~~d by assert- ing h3. at other times transitions on h3 are ignored. the h4s status ~l$\@~lways clear. when h34 enable in the port general control register is clear, h4 is held ~&@$&h. .?:;:? ,,s:*: ,. 2. h4 maybe an output pin in the pulsed input handshake protocol. ~%j%werted exactly as in the interlocked input protocol above, but never remains asserted ~~x than four clock cycles. typically, a four clock cycle pulse is generated. but in the *that a subsequent h3 asserted ,it, , ,~. .* .* edge occurs before termination of the pulse, h4 ?is nept~?$$asynchronou sly. thus, anytime after the leading edge of the h4 pulse, new data may:~~$ti$ered in the doubl~buffered input latches. the h4s status bit is always clear. when ~~ enable is clear, h4 is held negated. .,,{iw ~*jk*>,, ~.s;i>,, 3.5.2,2 double-buffered output transf,@?#$data, written by the bus master to the pi/t, is stored in the port?s output latch. the periphw~!~~~~epts the data by assefiin9 h 1 t which causes the next data to be moved to the port?s output??~xtih as soon as it is available. the h1 s status bit, in the port status register, may be program~ed f~r two interpretations. normally the status bit is a one when there is at least one latch in th@~@~ol~buffered data path that can accept new data. after writing one byte of data to?the portg?~,~~nterrupt service routine could check this bit to determine if it could store another byte; thg$~~~$fip?s both latches. when the bus master is finished, it is often useful to be able to check wkiy~rdl of the data has been transferred to the peripheral. the h1 s !?, ?t:$,: i:~~y,., status control bit of the ~ont,,ai control register provides this flexibility. the h 1 s status bit is set when both output latc~~}s~ empty. the programmable options for h2 are: 1. h2 maybe an .~~~t$in in the interlocked output handshake protocol. it is asserted when the port outpu$~~[%~ are ready to transfer new data. it is negated asynchronously following the asserted, eti~~~of the h1 input. as soon as the output latches become ready, h2 is again assertr~,when the output double-buffered latches are full t h2 remains asserted until data is re~,o$$}~~ ?thus, anytime the h2 output is asserted, new output data may be transferred by $~~(?t%g h1. at other times transitions &n h1 are ignored. the h2s status bit is always clear. $sw~&n h12 enable in the port general control register is clear, h2 is held negated. f52.~~?2 may bean output pin ?in the pulsed output handshake protocol. it is asse~ted exactly as in ,,.:*\,,:*\ ,i,:..>,, ~ .,,*,, ~ ,~.\ ., ? . . ,$:> .?. ?? ~;:::,,,. ~ the interlocked input protocol above, but never remains asserted longer than four clock cycles. ~,,.. $%~? typically, a four clock cycle pulse is generated. but in the case that a subsequent h1 asserted ??:?k $,, ~~ :, ~,. -~.,, ~.),~p \;+ edge occurs before termination of the pulse, h2 is negated asynchronously. thus, anytime after the leading edge of the h2 pulse, new data may be transferred to the doublebuffered output latches. the h2s status bit is always clear. when h12 enable is clear, h2 is held negated. the dmareq pin may be associated with either input transfers (h3) or output transfers (h 1 ), but not both. refer to table 3-4 for a summary of the port b data register responses in mode 2. 3-15
{-?
programmable options mode 2 ? port a submode xx and poti b submode xx (sheet 2 of 2) pbcr 1 h3 svcrq enable o ??: \.:$,( ,? the h3 interrupt and dma request are disabled. [?$,::.. ,,>, ,;.:s..~ 1 the h3 interrupt and dma request are enabled. ,.\*, ,.. ?.?.~$ ~ ? . ,? - .! {., k~?..>. ?pbcr .,:,.. .+$ 3.6 mode 3 ? bidirectional 16-bit mode ? >+:>, ??~$ . . y> ? ~~j%:.i.:$. ~., . , ., *.! +.i.\?,. ., in mode 3, ports a and b are used for bidirectional 16-bit double buffer~~~;a%fers. h 1 and h2 con- trol output transfers, while h3 and h4 control input transfers. h 1 a~~~~%~re enabled by the h 12 enable bit while h3 and h4 are enabled by the hm enable bit o{wt,h~;~?d~t 9eneral control re9ister the instantaneous direction of data is determined by the h1 ha~~xke pin, thus, the data direction registers are not used and have no affect. the port a and pw?~~~$ubmode fields do not affect pi/t operation in mode 3. port a and port b butput buffers ar~$$~k$~lled by the level of h1. when h 1 is neaated, the output buffers (all 16) are enabied and t~% pins drive the bidirectional pofl bus. . ge;erally a peripheral will negate h 1 in response to{~~~$erted h2, which indicates that new output data is present in the double-buffered latches. @ll?~~ng acceptance of the data, the peripheral asserts hi, disabling the output buffers. ot~j;$$~ controlling the output buffersl h1 is ed9e- sensitive as in other modes. the port a and past b data direction registers are not used. , ,+,.:, ..,,$$ *>?j ? : 3,6,1 double buffered input transfg.&:, ?~? ii\* *,.*$j * ?? ? i;~,.~ port a and b input data that mex~,$eport setup and hold times is latched on the asserted edge of h3 and placed in the initial in~&$dt@h or the final input latch. h3 is edge-sensitive, and may assume . ? ??2*&t ?? any duty-cycle as long as b&~~$tgh and iow minimum times are obse~ed. the pi/t contains a port status register whose ~$$~~~tus bit is set anytime any input data is present in the doublebuffered latches that has not,~,:$,~@ad by the bus master. the action of h4,is programmable and can be pro- ,)/ . grammed as: .,$ *:,, :$ 1. h4 may b~~~~~u?tput pin in the interlocked input handshake protocol. it is asserted when the port i~\t iakhes are ready to accept new data. it is negated asynchronously following the asse~$&~.&#tige of the h3 input. as soon as the input latches become ~ ready, h4 is a9ain aaw$$~ when the input double-bufferdd latches are fuilt h4 remains ne9ated until data is .q@~@oved. thus, anytime the h4 output is asserted, new input data maybe entered by assert- ? ??;k~g h3. at other times transitions on h3 are? ignored. the h4s status bit is always clear. when ,$ ;>?. r ..x.*~,,+,~# h34 enable in the port general control register is clear, h4 is held negated. ,:y: < ?~, ?l;$?, ?. ir$,t.. >;i:{ interlocked input protocol above, but never remains asserted longer than four clock cycles. ?$. typically, a four clock cycle pulse is generated, but in the case that a subsequent h3 asserted edge occurs before termination of the pulse, h4 is negated asynchronously. thus, anytime after the leading edge of the h4 pulse, new data may be entered in the doublebuffered input latches. the h4 s~atus bit is always clear. when h34 enable is clear, h4 is held negated. 3-17 ,
3.6.2 doublebuffered output transfers data, written by the bus master to the pi/t, is stored in the port?s output latch. the peripheral ac- cepts the data by asserting h1, which causes the next data to be moved to the port?s output latch as soon as it is available. the h1 s status bit, in the port status register, may be programmed for two interpretations. normally the status bit is a one when there is at least one latch in the double- *it, buffered data path that can accept new data. after writing one byte of data to the ports, an interj:,?~~~~~ rupt service routine could check this bit to determine if it could store another byte; thus filling box ~?w latches. when the bus master is finished: it is often useful to be able to check whether all of th~~~~$? has been transferred to the peripheral. the hi s status control bit of the port a control re~~$t&~~]o- vides this flexibility. the h1 s status bit is set when both output latches are empty. t:$~~~~@ram- mable options for hz are: \:i ~ .2$4,,, , ;, ?*<}$},?*. 1. h2 maybe an output pin in the interlocked ou~put handshake protocol. it is +$&ted when the port output latches are ready to transfer new data. it is negated asynchr~~~~y 7ollowing the , ~ , $+. i., ,:, .+ i, mode 3 can provide convenient high-speed l~$it transfers. the port a and b data registers are ad- dressed for compatibility with the mc68w~ahve peripheral (movep) instruction and with the mcw50 dmac. to take advantage ok~~~~~ofi a should contain the most significant data and alwa,ys be read or written by the bus ,q~$~~first. the interlocked and pulsed handshake protocols, status bits, and d mar eq are keye~$$b access of port b data register in mode 3. if it is accessed last, the 16-bit doubl&buffered&+r%~~r proceeds smoothly. .,;{,, . ,.$*.,.+ .,,.:?t,t, i .:;~ the dmar eq pin may b~$-.~ted with either input transfers ( h3) or output transfers (hl ), but not both. refer to table ~-5$or a summary of the port a and b data paths in mode 3. ~ *i. ~,~k:,$ ? ;, ;,{ ,l,.xtri:: ~, vj .,,, ? :,? ?i-t&>:t\*. . s,.*!,? ~ ,. .+,.*. ~:, $, i)$p.$ table 3-5, mode 3 poti a and b data paths ,,.::.,. ?j,s ~&? ?$tir. ..x~i, ,,> ,*! . ~. mode read port a and b write qor a and b ?$>$ , s)..$ >:$., - ,,.~f:~ data register data register ,,,+.,,,,,,+ ?. ,1 )? ~ ,?:1 3 fil, d.b. 10 l/fol, d. b., note 1 \ !$... ..!,. s ~.]...~$!< .!,k>.;? .* ,3! ~ note 1: data written to port a goes to a temporary latch. when the port b data *!*> . . ~:~ .i.,?i ,f?t;si> register is later written, port a data is transferred to 10l/ fol. t$~j;;:::). abbreviations: ?i;?:,$ -,), . iol ? initial output latch s.b. ? single buffered fol ? final output latch d. b. ? double buffered fil - final input latch 3-18

section 4 programmer?s model this section describes the internal accessible register organization as sqlster regiser , ,~.??+ )101010 l i po~ general control reqister ? (p&cr) i o i t .,>,. . i poti sewice reauest resister fj.. l*psrr) i o i ( rw i yes i no port a data direction resister .? .,,<.,,, !,>,.,.,. [ t 1 1 , , , .,. i port b data direction resister (. * . . . (pbddr)ioioioii iii ? rw lyesl nol .= ..- ,], 1 [ 1 i [ i i port c data direction register ~+?? ,.,. (pcddrt o 0?? ?? port interrupt vector register, ?..., ,! ?~? .:(, ,,~>, ~, . . . (pivri o o111o1 port a cantrol register -. :~i, k* ,. ,f, ?. , ,. .,,,. (pacri o 011111 )illolo rw yes no 1 rw yes no o rw yes no . . . . . . . \ . ,,. port b control register f,.?, , ,., i .,?.,, ,?)., ..:~ (pbcr) o 0 111 rw yes no porta data register ..>, \j>:. ~ ,<{$*? +?+.:,:l. \ ??w... (padr) o 1 0 0 0 rw no l * port b data register *:.@> .:?:,:>, ?~:! ., (pbdr1 o 1 0 0 1 rw no ** .*.$., .,.>,> port a alternate reoister . . ?.%t (paar1 o 1 0 1 0 r no no pnfi r altern 1 r no no o rw no no .- .- ._ =.-._. .? ,.. ?.1 -. ___ . . . ,late register ,&j* ?:*j ,,. :}: \./ ,- (pbar) 0 1 0 1 port c data resister ,8 *,,,, ~$,,,, ,.+jf (pcdri o 1 1 0 1 ?-~ status register i ~ (psr) o 1 1 0 ler control regis~#7 (tcr) 1 0 0 0 ul n ler interrupt vectot~~ister (tivr) 1 0 0 0 rur 11 r w, yes no tim . i ?w yes no tim 1 rw yes no counter prel@*$@~kter high (cprh)iiioioi1]l rw na no o rw no no counter rq~@~ #gister middle k (cprm) 1 0 1 0 count= ~~&~ register low (cprl) 1 0 1 0 1 r i 1 1 co:~qd@ter high (cntrh) 1 0 1 1 1 f #oum{ ?kgister middle (cntrm) 1 1- ? ? ? k.., .,,.? _ ,------- - . w inoi no i i r no no .,,,,, u u u r no no lmt heglster low [cnihlji1]l o 0 1 r no no itcs) \ 1 i 1 n 1 0 r w. yes no ,,, . ,-, ?.?,?? , ,u~,-.v, ,, -,,,..? i ?$$.f~? ? 1 ? l a write to this register mav petiorm a special status resetting operatian. r= read ~?;. l l mode dependent. w= write throughout this section the following conventions are maintained: a read from a reserved location in the map results in a read from the ?null register.? the null register returns all zeros for data and results in a normal bus cycle. a write to one of these loca- tions results in a normal bus cycle, but written data is ignored. 1. 2. .- unused bits of a defined register are denoted by ?*? and are read as zeros; written data is ignored.
3. bitsthat areunused inthechosen mode/submode butareused inothers aredenotedby ''x'', ,? and are readable and writable, their content, however, is ignored in the chosen mode/sub- mode. 4. all registers are addressable as 8-bit quantities. to facilitate operation with the movep instruction and the dmac, addresses are ordered such that certain sets of registers may also be accessed as words (two bytes) or long words (four bytes) 1 ??: \.:$,( ,? ?>..j.,\:<*;<>.,\:;:. :, . . . . ,, :.$.h ..:..,,., ~ $\,)+,. j$ ~ ,,,?,s,, ?t,. 4,1 port general control register (pgcr) +!i .,, .:,*,, * 1.::,$ $t$\,\ ,.,,:,,. $.? ,:,y .,, 4.,? .~~> poti general control register (pgcr) :?,$~~~~ .ffi ,,.. .,,, , 7 6 5 , ?,,;, 4 .3 ., ,;?, 2 1 0 !,, port mode h34 h12 i h4 h3 h2 control enable, enable sense sense sense the port general control register controls many ot the functions that a operation of the ports. the pgcr is composed of three major fields: bit tional mode of ports a and b and affect operation of the handshake pins allow a so ftwar~controlled disabling of particular hardware associ~$ each port; and bits 3-o define the sense of the handshake pins. writable. ? ;!:/,,, ~,s ,,y~, >= ..a:+: :5,.. :~i . . . l.*<$ ,* ...,$~ all bits are reset to zero when the reset pin is assert~$y,~w, .4:; ,,~ ~- >.$~,, ..> t, the port mode control field should be altered on~~~~: the h12 enable and h34 enable bits are zero.. except when ?mode zero is, desired (submod&{~f, the port general control register should be ?? written once to? establish the mode with the, h1 #and h34 bits clear. any other necessa~ control ,, ~~ registers can then be program med;after ~mh h 12 or h34 is set. in order to enable the respective operation(s), the port general control r~~$~r$hould be written again. ,,j, j ,,jt ,\ ,, ~\..,. ~$, ,,. pgcr 76 00 01 10 11 mode o (unidirectiomj &*#~ mode) mode 1 (unidirec@ha~l@- bit mode) mode 2 (bidire:@#~[m-bit mode) mode 3 (bidirq&ti@al 16-bit mode) .,,$.,,s,:;3{,, >.4:*1;.*f 3-o 0. 1 . ;., . disabled enabled handshake pin sense the associated pin is at the high-voltage level when negated and at the low-voltage level when asserted. the associated pin is at the low-voltage level when negated and at the high-voltage level when ~ asserted. 42 e
4.2 port service request register (psrr) poti service request register (psrr) 7 6 5 4 3 2 1 0 [ svcrq operation port interrupt l select ??: \.:$,( ,? select priority control . . . a$$;;$;:i,~$.~,,s the port service request register controls other functions that are common to the overall op~r~t~h to the ports. it is composed of four major fields: bit 7 is unused and is always read as zerqkk~~~?~nd 5 define whether interrupt or dma requests are generated from activity on the h1 $~~~$?hand- shake pins; bits 4 and 3 determine whether wo dual-function pins operate as po~..?:~t,@ofl inter- rupt request/acknowledge pins; and bits 2, 1, and o control the priority amon&~l[~~$8rt interrupt sources. since bits 2, 1, and o affect interrupt operation, it is recommended,t~at twey be changed ::~:$i?:$$. . only when the affected interrupt(s) is (are) disabled or known to remaj,~$t,~~~ve. the ps r r is always readable and writable. ,,~). i~.$:,:$ $:. ,;, :f$ *.,/i.? ? *t>, <>, !::,y,~. ~j$$.f$,:, all bits are reset to zero when the reset pin is asserted. ? ,$ib~ ,t,,.,t$;,l , ~,,+ !;,, ? :<~p~ *$:$s.:., .*,. psrr ,., ;t~ ??~~, 65 svcrq select *j .,s~\.,.,\, , ;.: ,+,.i,.h*? ., ,,, ,,!.. ,3,.>/. $?? o x the pc4/dmareq pin carries the pc4 function$dwk is not used. .$p $>:, . ..1..,,, .*, ) \ psrr svcrq select v ~~,?,, ?$? g $} 10 the pc4/dmareq pin carries the -knction and is associated with doublsbuffered transfers controlled by h 1. h1 is removs~~~% the pl/t?s interrupt structure and thus? does not cause interrupt requests to be generatq~. ~g obtain dmareq pulses, port a control register bit 1 (hl svcrq enable) must be a ~@{ ?? 1 1 ? the pc4/dmareq pin carrie~.ti$omareq function and is associated with doubl%buffered transfers controlled by h3$,m?%~~$s&moved from the pl /t?s interrupt structure and thus, does not cause interrupt requests$.~~~~,,s~nerated. to obtain dmar eq pulses, pofl b control re9ister bit 1 psrr 43 carries the pc5 function, no interrupt support. nction, no interrupt support. 01 the p@/~q pin carries the pirq function, supports autovectored interrupts. th#$c6~flack pin carries the pc6 function, supports autovectored interrupts. in carries the pc5 funqtion. pin carries the piack function. in carries the ~ function, supports vectored interrupts. pin carries the piack function, supports vectored interrupts. .t)+~h ,, ~,, .; !r ,#?i$i&?, 1, and o determine port interrupt priority. the priority as shown in table 42 is in descending left to right. table 42. psrr port interrupt priority control 210 highest . . . . . . . . . . . . . . . . . ..low@ 210 highest . . . . . . . . . . . . . . . . . ..low* 000 his h2s h3s h4s 100 h3s h4s his h2s 001 h2s h1 s h3s h4s 101 h3s h4s h2s his 010 his h2s h4s h3s 110 h4s h3s his h2s 011 h2s his i h4s h3s 111 h4s h3s i h2s his
4.3 port data direction registers the following paragraphs describe the port data direction registers. i i i ( t 1 1 p 4.3.1 poti a data direction register (paddr) ~ ~~~.~l the port a data direction register determines the direction and buffering characteristics of ea~,~~~ the port a pins. one bit in the paddr is assigned to each pin. a zero indicates that the pin $(~~$$ as a input, while a one indicates it is used as an output. the paddr is always rea@~@and writable. this register is ignored in mode 3. ,,$ >.:,. ,.:? . ,,},. ,*<, ,.~~ \ti) +- ?. ?~i,;. .;%b>z. ,,, ,,~?. ,js ?;\{$,\ 4.3,2 poti b data direction register (pbddr) ??i ,.,, +-.., .;,\.:<, it ,! !i~, ~. > \:\;\+ \,.,.,.* ~ .::-$... f, ,. .,,,,:.. the pbddr is identical to the paddr for, the port b pins and the port .~~~~~??register, except that this register is ignored in modes 2 and 3. ..,+)$t \ > ,y,,, -,,. ..,,, ~ ~ r~:i,,t..?;. ? f\* ~,:\*.f : ,t~.i, .+,:. 4.3,3 poti c data direction register (pcddr) ,, :40 ?~j ,,,.$:.. \\$,.. ?:*y,\a>(), ?.>$,v ,ii- the port c data direction register specifies whether each q~a;%nction pin that is chosen for port c operation is an input (zero) or an output (one) pin. the.,~~d,~r, along with bits that determine the respective pin?s function, also specify the exact hard~$r~f$o ?be accessed at the port c data register address (see 4.6.3 port c data register (pcdr) f~~~~~e details). the pcddr is an &bit register that is readable and writable at all times. its opera%?n is independent of the chosen pi/t mode. .1 .,. ..,: ~ .<,c these bits are cleared to zero when th~ ~w pin is asserted; ,., . ?< ?*v . :$.y.,t:$,.. . . . . 4,4 port interrupt ?vector ~&$~$?kr (pivr) rq~jf&f~rrupt vector register (pivr) . . ~ 7 the port interrupt the contents of th acknowledge b~p tors. behavior.:*~~g a port interrupt acknowledge cycle is summarized in table 2-1. . . . \ .?j*.::$\, ? ?rem a gd?m. ;ead ,cycle, there is never a consequence to reading this register. following negation )f thqj,,rk~~ pin, but prior to writing to the pivr, a $of will be read. after writing to the register, :h:,,~~~~six bits maybe read and the lower two bits are forced to zero. no prioritization computa- l~,(bjperformed. ?:?,:. ?,?r.:ix., , ..? ~ ~\. f5 port control registers (pacr, pbcr) ?he port a and b control registers (pacr and pbcr) are described in section 3 port modes, ?he description is organized such that for each mode/submode all programmable options of each. iin and status bit are given. ,. ( ., .
the following paragraphs describe the port data registers. 4.6.1 poti a data register (padr) .-$ *-. . . . . . . ,?,8,,,$ ~i,l{:st.,.},, \,>:t the port a data register is a holding register for moving data to and from the port a pins. th@~~#a data direction register determines whether each pin is an input (zero) or an output (one), ,@*$j&&?ed in configuring the actual data paths. the data paths are described in section 3 pqr%m~des. .,- !\l, .~$,? .~:w, ,,,:-,. , ~. .,,.y.:,?-% ,:(:? this register is readable and writable at all times. depending on the chose~j;~@w/submode, reading or writing may affect the doubl~buffered handshake mechanism. th6\~o%~ data register ~a~.,:$* is not affected by the assertion of the reset pin. y$ . ., *.. !. @\?+\?,;, ~][}i .$. .?;:?? ,..> ?~. . . . . \}$,*, $ *l> , .1, ~\~ , ~<$?$? 4.6.2 pofl b data register (pbdr) ?n. ..??*!k ~ .>~:.?~!:?+:. $. the port b data register is a holding register for moving data t&~~&tfrom port b pins. the port b data direction register determines whether each pin is an inp~$~~~~b~ or an output (one), and is used in configuring the actual data paths. the data paths are+~~~~ed in section 3 port modes. * ?~\%. .?, ~? this register is readable and wfitable at all time~,,~~@i4ending on the chosen mode/submodei reading or writing may affect the doublebuffere,q;$ari# shake mechanism. the port b data register is not affected by the assertion of the res et*@m+;???? .~.,.h, ., . . . 4.6.3 port c data regiqer (pcdr) ,,~~~% ? the port c data register is a holdjp@~&i;er for moving data to and from each of the eight port c/alternatefunction pins. the$~~~~},~ardware accessed is determined by the type of bus cycle (read or write) and individual w@?&tins affecting each pin. these conditions are: 1) whether the pin is used for the port c or al~i%~ function, and 2) whether the port c data direction re9ister in- dicates the input or out~.. table 43. pcdr hardware accesses ,+,,.. ?i,. note that two additional useful benefits result from this structure. first, it is possible to directly read the state of a dual-function pin while used for the non-port c function. second, it is possible to generate program controlled transitions on alternatefunction pins by switching back to the port c function and writing to the pcdr. this register is readable and writable at all times and operation is independent of the chosen pi/t mode. the port c data register is not affected by the assertion of the reset pin. 4-5
4.7 port alternate registers the following paragraphs describe the port alternate registers. 4,7.1 port a alternate register (paar) .*,,, . .!:{? . .> ..<*:, the port a alternate register is an alternate register for reading the port a pins. it is a rea@~~~~~d- dress and no other pi/t condition is affected. in all modes, the instantaneous pin level$~q# and no input latching is performed except at the data bus interface. writes to this addre:q&+@{@swered with =, but the data is ignored. ,, ~ ,7 ,,,;(+~+ < .,+$ ~w,.~. .\.> *+,. ...},~. . ,,. . \ ,, ?., ~.,,,iit ,. , ~, ~ \~ ? (,:b. , .*: : 4.7.2 port b alternate register (pbar) , ~?i.;., ,,, ,,:}.. ~t, ?k):,., s .? $*&. &,*,( the port b alternate register is an alternate register for reading the por&@*sj it is a read-only ad- ,! \ ,:,! ,~.i .$h$ dress and no other pi/t?condition is affected. in all modes, the instq~~~~us pin level is read and no input latching is performed except at the data bus interface. wri@w?>?this address are answered with dtack, but the data is ignored. ,. \ ,\<\:, ~${,fi *. ,.31, ,wx.! {(. ~i:i.:, .? ,,.>%. \..?,:,\.\.\ ,. ?,.:;!,, .,$,, pi 4.8 port status register (psr) f.? >fm ?~ r\*,, >3a ,,.$::-?: ,,, ,., i. ~;,.,, ,!* port status req@er ??@sr) 7 6 5 ?4 ,*,,?%*iq ?k). * 1 0 h4 level/ h3 level i h2 level i h 1 le~lfj}, @s i h3s i h2s i his i ~ . . . . ::::* the port status register contains information~~out handshake pin activity. bits 7-4 show the in- stantaneous level of the respective hand$hakg pin, and are independent of the handshake pin sense bits in the port general control registq~~~: 3-o are the respective status bits referred to throughout this document. their interpretations*~nds on the programmed mode/submode of the pi/t. for s, bits 3-o a one is the active or aq~~t?ti state. ,:>$:.. ?*:i,%$.j$ ~w?>i;t,:.. .,, ,-~, .,,, ,,, 4.9 timer control r,~$~?+&~ (tcr) 9j;,$, ?+:?i+b,<$ 1+ timer control register {tcr) 5 4 3 2 1 0 ~k?,, clock timer &\)*\, control ,. ,~, control enable the time~ .-> . 1 00 the dual-function pin pc3/tout carries the tout function. in the run or halt state it is used as a timer interrupt request output. the timer interrupt is disabled; thus, the pin is always three stated. the dual-function pin pc7/_ carries the ~ function; however, since interrupt request is negated, the pi/t produces no response (i. e:, no data or dtack) to an asserted tiack. refer to 5.1.3 timer interrupt acknowledge cycles for details. .-:,.t.>, 1 0 1 the dual-function pin pc3/tout carries the tout function and is used as a timer interrul~~@$l quest output. the timer interrupt is enabled; thus, the pin is low when the timer zds sta~ys,~~% one. the dual-function pin pc7/tiack carries the tiack function and is used as a time?~~~twpt acknowledge input. refer to the 5.1.3 timer interrupt acknowledge cycles for detai~~~:~~fs com- bination supports vectored timer interrupts. *::,y ,:i*&:!>: 1 1 0 the dual-function pin pc3/tout carries the tout function. in the run or hal!st~~~,$~~s used as a j,. ~,i~~ timer interrupt request output. the timer interrupt is disabled; thus, the pin is ?~~~ys thre%stated. the dual-function pin pc7/tiack carries the pc7 function. ,%> ,,. ,,,.. ?.v$ %k, ..{, 1 1 1 the dual-function pin pc3/tout carries the tout function and is ~.~#~~* timer interrupt re quest output. the timer interrupt is enabled; thus, the pin is iow w%:w~~~~lmer zds status bit is one. the dual~function pin pc7/tiack carries the pc7 functio~,,#~~wtovectored interrupts are supported. . . .cy;;; ?c,~$ ?,, ~:, *?, ~p?:s, ~ *,1:, ,.x<:~,i,t ,e ?t>:b,~~ ~ tcr ~.>.3\t, ,,.. t?l,,) 4 zero detect control ~~; ?-!$, ~ f$~t>..w>> o the counter is loaded from the counter preload re~[~~r bri the first clock to the 24-bit counter after zero detect, then resumes counting. i:? ?* .,,,.?.i+{ ,,i~ 1 the counter rolls over on zero detect, then,~~~t%~es counting. .?$, ?1;, .- n. .? ,.. ,, ,,*,. tcr ~:$\,, !\.. ?>, ~~$,~$\t..:+::: :~::,,. 3 unused and is always read as zero. ?y$i, ,.:~ :$, tcr *,<){;, ? \:;, 21 clock control t+}. ~$,.t. o 0 the pc2/tin input pin cawi~k~& port c function, and the clk pin and prescaler are used. the prescaler is decremen,~,~:~p-??the falling transition of the clk pin; the 24-bit counter is decremented, rolls o,m&~~f~~&? loaded from the counter preload registers when the prescaler rolls over from $00 to $l$~q~ timer enable bit determines whether the timer is in the run or halt state. 01 the pc2/tin qj@~~,@s as a timer input, and the clk pin and prescaler are used. the prescaler is decremented 4p t@ %alling transition of the clk pin; the 24-bit counter is decremented~ rolls over~ or is load$~w~he counter preload registers when the prescaler rolls over from $00 to $1 f. the timer i~,~~:~.~ftun state when the timer enable bit is one and the tin pin is high; otherwise, the timer &kln$he haltstate: 1 0 t@,,pc~p~ln pin serves as a timer input and the prescaler is used. the prescaler is decremented ~~~g the rising transition of the tin pin after being synchronized with the internal clock, the . +kk~:ti]t counter is decremented, rolls over, or is loaded from the counter preload registers when the ?:$kpfescaler rolls over from $~ to $1 f, the timer enable bit determines whether the timer is in the run ,.$t,:,.i ?$ ?j?* ?or ha it state. .i*{tt.*. ~ -$< .,~~ ;, f~~, 1$ % the pc2/tin pin serves as a timer input and the prescaler is not used. the 24-bit counter is ,$:, ?$.:>:$ 1. ,, ,.,... decremented, rolls over, or is loaded from the counter preload registers following the rising edge ik~). ,,*jj\~.*l. ..,. .*:.,,. of the tin pin after being synchronized with the internal clock. the timer enable bit determines .:j?l::?)..: 4.10 timer interrupt vector register (tivr) the timer interrupt vector register contains the 8-bit vector supplied when the timer interrupt acknowledge pin tiack is asserted. the register is readable and writable at all times, and the same value is always obtained from a normal read cycle or a timer interrupt acknowledge bus cycle (tiack). when the ~ pin is asserted the value of $ timer interrupt acknowledge cycles for more details. ,i..>s,??}i~ 4.11 counter preload register h, m, l {cprh-l) ~..,)$ counter preload register h, m, l (cpr 7 6 5 4 3?2 bit 23 1 bit 22 bit 21 bit 20 bit 15 bit 19 bit 14 bit 18 bit 17 bit 13 bit 12 bit 7 bit 11 bit 6 bit 10 bit 5 bit 9 bit 4 bit 3 bit 2 bit 1 the counter preload registers area group of three 8-bit registers u red to the counter. each of the registers is individually addre with the movep. l or the movep.w instructions. the a! cprh) is the null register and is resewed so that zeros ~r~ tion data register when a movep. l is used. data writ@ f&this address is ignored. ~: />1,< >,::,,, !, y$. these registers are readable and writable at all tj@~#~a read cycle proceeds independently of any transfer to the counter, which may be occurriq&~i,@ultaneously. to insure proper operation of the pi/t timer, a value of $0~0 may not be s%~w ?in the counter preload registers for use with the counter. the reset pin does not affect th~ ?&bntents of these registers. register h, m, l (cntrh-l) 7 bit 23 bi:20 3 2 1 0 bit 19 bit 18 bit 17 bit 16 cntrh bit 12 bit 11 bit 10 bit 9 bit 4 bit 8 cntrm bit 3 bit 2 bit 1 . . . -...\?.? ,,.,y bit o cntrl the count register~?ar~;group of three 8-bit addresses at which the counter can be read. the con- \,a ,.,,,, ~?\:*, ,{:+ tents of the ca&fitw?~re not latched during a read bus cycle; thus, the data read at these addresses ~?:$.i ,t is not guara$tee&w the timer is in the run state. write operations to these addresses result in a nor- mal bus ~~~~~ut the data is ignored. .,.\>,;.. ?+, ,+~>b,,. . ~>,, each:$~~$eregisters is individually addressable, or the group maybe accessed with the movep. l ~vt~,movep.w instructions. the address, one less than the address cntrh, is the null register .$ .q,djs reserved so that zeros are read in the upper eight bits of the destination data register when a f~#~ovep. l is used. data written to this address is ignored. . ~, , *<,i,, ??%?$..,, \ - /:. ,j$,>~&.:.+ ~~ 4.13 timer status register (tsr) timer status register (tsr) 7 6 i 5 4 3 i 2 i i 1 i o l l l 4 l i l i l i zds 1
~. , the timer status register contains one bit from which the zero detect status can be determined. the zds status bit (bit o) is an edgesensitive flip-flop that is set to one when the 24-bit counter decrements from $000001 to $000000. the zds status bit is cleared to zero following the direct reset operation or when the timer is halted. note that when the _ pin is asserted the timer is di~ abled, and thus enters the halt state. ,,t.\.+ .,, .. :,., t~}is.it!i::: ~$.?t~., ?;! ., ..:*j, ,, ..;, ,., ~.> .$}, this register is always readable without consequence. a write access performs a direct r~d*3~&ra- ,.> :**,.. tion if bit o in the written data is one. following that, the zds bit is zero. .*,,.,, . . ?r ~~?~.. ~? $. , .::::& ,:.~ ~ ., . . ...>..- ~~ ,.$~ >?~ ,. ~ ..,.h,::,.., , .w this register is constructed with a reset dominant s-r flipflop so that all clearing~~#;~ons prevail over the possible zero. detect. condition. .{}?:. ?+? ,ii\ ?.:+. ,.*:$?\nt. ../\,\ ,, ,t,,, ..\ st,.}$. .,il ? ?~>.s$f+,, bits 7-1 are unused and are read as zero. .,,; . . . :.!?. ? .\tirt\.,, , , ~ +t>i .tl$r\\jt - ?.. .,+., ,,*x <\ *.$.>j ,>, , ~ ~..,. ,,~~ ,,,, ~\..! 4-9/4-10 that re for the
section 5 timer operation and applications summary&~:$? ..,,, ~?;., ? ,...,:!$ ? $. ~ ~..:t.;( ,, ,{;:( - >*k.. ~. t::iy - this section describes the programmable options available, capabilities, and *&ictlons that appiy .? ~ ?]$x. ) .~.ytl~ to the timer. programming of the timer control register is outlined with ,~~~~ gxamples 9iven. ,. st}:. ~,, .~.~, \\.. .,,t?~ 5.1 timer operation the mc~230 timer can provide several facilities needed byy.~w operatin9 systems. it can generate periodic interrupts, a square wave, or a single inte$r~~t~~f~er a programmed time period. also, it can be, used for elapsed time measurement or as *~#~v~ce watchdog. ~..t: , ~. .-?.~ :.\j, . .b ~ - ~:;ek,, the pi/t timer contains a 24-bit synchronous downm~n~r that is loaded from three 8-bit counter preload registers. the 24 bit counter may be d,~~~~ by the output of a ~bit (divid~by-32) prescaier or by an external timer input (tin). %~~w prescaler is used, it may be clocked by the system clock ( clk pin) or by the tin external i~pu~. the counter signals the occurrence of an event primarily through zero detection. (a zerw~,when the counter of the 24-bit timer is equal to zero. ) this sets the zero detect status (zds) ,q~%jn*he timer status register. it may be checked by the pro- cessor or may be used to generate ~+~~~hterrupt. the zds bit can be reset by w~tin9 a one to the timer status register in that bit d@@ independent of timer operation. {\t*~?, .~,>,.? ,\ ,, ?,,,**, ~!:? ,*+ ? !>;:>;:.* the general operation of thq.t~d? is flexible and easily programmable. the timer is fully configured and controlled by prog[~~~~~g the 8-bit timer control register (refer to 4.9 timer control register (tcr) for.,@d@wnal information). it controls: 1 ) the choice between the port c opera- tion and the timer~:@a&,~~on of three timer pins, 2) whether the counter is loaded from the counter preload register ?~:,,rplls over when zero detect is reached, 3) the clock input, 4) whether the prescaler is ~,@#, and 5) whether the timer is enabled. t~~o~&~l operation of the timer is described in terms of the run or halt states. the control of the $,$q?kdt state is determined by programming the timer control register. when in the halt state, all of ,~.??}$~following occur ~~~~? 1. the prior content of the counter is not altered and is reliably readable via the count registers. ,3.. 2. the prescaler is forced to $1 f whether or not it is used. 3. the zds status bit is forced to zero, regardless of the possible zero contents of the 24-bit counter. the run state is characterized by: a 1. the counter is clocked by the source programmed in the timer control register. 2. the counter is not reliably readable. 3. the prescaler is allowed to decrement if programmed for use. . 4. the zds status bit is set when the 24-bit counter transitions from $000001 to $000000.
the 1 2. 3. 7. ..- 8. following is a set of rules that allow easy application of the timer. refer to 5.1.1 run/halt definition. when the reset pin is asserted, all bits of the timer control register are cleared, configuring the dual function pins as port c inputs. .-: . . . ::\lrk the contents of the counter preload registers and counter are not affected by the w:pfh. the count registers provide a direct read data path from each portion of the 24-bit qq?~~#r, but data written to their addresses is ignored. (this results in a normal bus cycle. ) ~~@~registers are readable at any time, but their contents are never latched. unreliable .~~~g??m~y be read when the timer is in the run state. ~li v ,,k,.?*. ? ,:,~,.b,, .,.~,i .*?,.:.,. , ,x,.. the counter preload registers are readable and writable at any ~,~e ?~~,~ this occurs in- ?j?it: dependently of any timer operation. no protection mechanisms ar~+,$~~ided against ill-timed writes. ..\~ .,.!?, :t+ ,. .k>j , ,,>.~.~ . ~?,~ ,,,:,1 ,? ,~.- the input frequency to the 24-bit cou;ter from the tin ~ifi*&fi;:@rescaler output must be between zero and the input frequency at the clk pin divi,~ed~y eight, regardless of the con- .:?~,.,: tk :~$m, . . figuration chosen. .,:{ ;:], , ~.> >..:$ ~,> ,\f,* . . ~. ?tl,, , for configurations in which the prescaler is used (w~~~?~b clk pin or tin pin as an input), the contents of the counter preload register (cpr#~$ wfisferred to the counter the first time that the prescaler passes from $m to $1 f ( roll,~;ov~~$ after entering the run state. thereafter, the counter decrements, rolls over, or is load~,{ ?~k~m the counter preload register each time the prescaler rolls over. . . ,>. +}. !~ ., . . . for configurations in which the presc@~&j~not used, the contents of the counter preload registers are transferred to the counter o)%he first asserted edge of the ti n input after entering the run state. on subsequent a:~rte&edges the counter decrements, rolls over, or is loaded from the counter preload regis$~r~i, , the smallest value allowed~t@&&ounter preload register for use with the counter is $-1. ,$y *$i. ?? ~:i. ...*v,. .: ,$>~$. ?~>,? ,, ?~* ~:f 5.1.3 timer? interrupt ack~?w~ge cycles ..?: \ ~?~, ?}\+\& several conditions m~ba~~tesent when the timer interrupt acknowledge pin (tiack) is asserted. these conditions ~~$&&r,&e pi/t?s response and the termination of the bus cycle (see table 51 ). $};?? >*& 3$, ~,. ,t:>::::~, ??).,. .$ ,,>, ,., .,. ., ,: ~ ,i:il . ,, , $.{ ,.) ~*j.~,,\>, table 51. response to timer interrupt acknowledge ,$:+~ >*$$ ? ,. ?~ik.i,,,l *~ ,>,. .,l~? .j{.$r .$+..),, ,+$+,,, pc3/tout fun@ion response to assaned tiack ,,a:ti, ~ -,,,:,,r<.\ .,i., j,*.* \ ..i$:,. \ , . pc3 ? port c pin no response .~?y,~ $>, ?*:&,a ,* no dtack ?i)... *$.?* ,, ,vi,$xi tout ? square wave no response t. ..j:.}- ., ,,\.!!r ,+y + no dtack ii:? .,:b~j~j, *i, ., ~+:<+ tout ? negated timer no response ,,.: .,\* .,.+ ., ~ ,,v$ ., vu interrupt request no dtack ~~, r- tout - asserted timer timer interrupt vector content5 interrupt request dtack asserted 5.2 timer applications summary the following paragraphs outline programming of the timer control register for several typical examples.
* \ 5.2.1 periodic interrupt generator example petiodic interrupt generator example 7 6 5 4 3 2 1 0 tout/~ z.d. clock timer .-: \.r*,, control control l ?, ~,?,, . control l-{?$:::.$\i+{,ii,.i enable ?*,; 1 x 1 0 0 morl x ,$.!$>> , changed ,.ki. ~,,? {.?!}. ? $.?,. ,,, ~.?:$.~~?.$~:!+,),,?,r in this configuration the timer generates a periodic interrupt. the tout pin is conne~t&/& the system?s interrupt request circuitry and the tiack pin may be used as an interrupt ac~~~wpfige in- put to the timer. the tin pin may be used as a clock input. ,,,.i<\:\ },,. t,.,. .,4. . ~t;y::~? ,,~*\? t ,,, , ?~,: ~t. .?, - .~.$e,: tout (square wave output) pin is toggled. at the next clock to the 24-bit counter it is again loaded with the contents of the cprs, and thereafter decrements. in this application there is no need for the processor to direct clear the zds status bit; however, it is possible for the processor to sync itself with the square wave by clearing the zds status bit, then polling it. the processor may also read the tout level at the port c address. ~ ~*~.*. note that the pc3/tout pin functions as pc3 following the negation of reset. if used i~$?&j~*% . . . . . ~ .,., square wave configuration, a pullup resistor may be required to keep a known level prior ~~$~$~ gramming. prior to enabling the timer, tout is high (see figure s2). ,.\$$:)i?@ ?j,:.s4,a ,,,7,.<> . ,,, ,. ?!k:***~ ??]:$ f, ~$~. .,,, ~,,,j /.)?. enable ~ ! $ffffff 1 . . . l analog representation of ~h~\+&lue. . . . ..b ,?!%:a [*... >., ,! ;, ~ *;,,: ..\ ,. figure 52. square y~& generator example ,. >? ~:~ . . :.. ,., . . . .*$ \,:y- , ;, ,, ., ?t~: ,. ~$? ~$, ,:, 5.2.3 interrupt after timeout \.$\ \\,j ,$:+:)s$,, ,$1 ,, \. ? .?:i,~~+ . .x ,,::;+*, ~:t,. ?s~ ih.,~b~rrupt afier timeout ~{;it\$i?s 4 3 2 1 0 tou&{tt . k z. d. clock timer ;**tofix control l control enable ~{$s~,h.:x 1 1 0 ~orlx changed \* ,$t ,., in this configuratio~+$~t~~er generates an interrupt after a programmed time?period has expired. the tout pin isco~@ted to the system?s interrupt request circuitry and the tiack pin maybe an interrupt ack~~~,dge input to the timer. the tin pin may be used as a clock input. ,,.,, ~, ?$9**? . this conf~~~$on is similar to the periodic interrupt generator except that the zero detect control bit i:~8xl!~s forces the counter to roll over after zero detect is reached, rather than reloading from .:,y~,t the ~~p~s. when the processor takes the interrupt it can halt the timer, read the counter and ~]~~[~~e the time from the interrupt request to entering the service routine. accurate knowledge of -$$~~$ interrupt latency may be useful in some applications (see figure 5-3). .,.+ ??,:;:l >\,, ?:,.:: ,,,,, . 5-4
-,<; ??++. 5.2.4 elapsed ~me measurement examples ,g+$x, ? .j:.. > ~:. f:(*, .?i> elapsed time measurement takes several formq~.$+~~$ forms are descfibed in the following paragraphs. .&,:,.,:,. ;$j,r. ..,,,. ? y.., \ \*, ., .tr~> , 5.2.4.1 system clock wmple. t~~~nfiguration allows time interval measurement by soft- ware. the tin pin may be used as an..~brhal timer enable if desired. ,,+, .~~,. t - f.! s the processor loa~~:~~~ounter preload registers (generally with all ones), loads the timer control register, and t@en ?~~~les the timer. the counter is allowed to decrement until the ending event takes place. ~@~iit is desired to read the time interval, the processor must halt the timer and then read the wi~e}~ if tin is used as an enable, thp start and stop counter functions are controlled . ..>. ., .,... ffqfi~,@ications in which the interval may exceed the programmed time interval, zero detection can ?$~:bunted by polling the status register or through interrupts to simulate additional timer bits. note ?~j}%*t the zds bit is latched and should be cleared after each detection of zero. at the end, the timer k. can be halted and read (see figure 5-4).
8;$ ?* ?& 5.2.4.2 uternal clock. this configuration allows measurementj&$~fig) of the number of input pulses occurring in an interval in which the counter is enabled.,i~$$~l~ln input pin provides the input pulses. generally the tout and tiack pins are not used. .i~fi$~? .,$::$, ?$,~. ., .,.,.. e~ernal clock ,, ~ ?+~:$~ ~.::,, ,,. #,:? ?,?,. \;.>a .,;* 7 6 5 4 3 ,:; $?..,~ } ? 1 0 ~ tout/~ z. d. ... $ clock ~mer control control ,$! control o 0 enable x 1 ..~,~: ~ x changed this configuration is similar to the elapsed ti@~j&surement/system clock configuration except that the tin pin is used to provide the inpuf$@uency. it can be connected to a simple oscillator and the same methods could be used. alte.~ately, it could be gated off and on externally and the number of cycles occurring while in t~q~run? state can be counted. however, minimum pulse width ,? device watchdog example 4 3 2 1 0 z. d. i clock timer control l control enable 1 0 0 1 changed ~ ..* .:1<,, ~tl~? ,-; ~,, this c~~@%stion provides the watchdog function needed in many systems. the tin pin is the timef:l~ptivwhose period at the high (one) level is to be checked. once allowed by the processor, ~~r.>., .:&,. th,~~!~,rnput pin controls the run/halt mode. the tout pin is connected to external circuitry re #ui{j~ notification when the tin pin has been asserted longer than the programmed time. the ,f$+m pin (timer interrupt acknowledge) is only needed if the tout pin is connected to the inter- ,:,,v,$j$, rupt circuitry. ,..> ,,,. ?~. ;+ ;,? ?t< ~ ,3; ~!$. the processor loads the counter preload register and timer control register, and then enables the timer. when the tin input is asserted (one, high) the timer transfers the contents of the counter preload register to the counter and begins counting. if the tin input is negated before zero detect is reached, the tout output and the zds status bit remain negated. if zero detect is reached while the tin input is still asserted, the zds status bit is set and the tout output is asserted. (the counter rolls over and keeps counting. ) 5-6 c,
in either case, when the tin input is negated the zds status bit is zero, the tout output is negated, the counting stops, ?and the prescaler is forced to all ones (see figure 55). 57/58 ,
this section contains electrical specifications and associated timing informatiq~~t~r~e mc63230. .t.if)i~, >*( i. ~<> 1:~} k,;\$, . . . 6.1 mhimum ratings charatiefiatica symbol value unr supply voltage vcc ?0.3 to +7.0 v input voltage vin ?0.3 to +7.0 v operating t@mn~r2t1jre ranae ta i o to 70 oc s1 .-. .. f - - - - - - - - - - = . , torage temperature tstg -mto +iao ?c li ~.~?.,t$,l$ +:.,} ,,$,:*? , .,,$ ? +?$~~ ?, ?iii?? s, ,$,*? ..1. . . . . . . .>+ ~:.,., * .*,>f!$lp- ?$*? pd= k- (tj+2730c) ,,. ?s solving equations 1 and 2 for k gives: (1) (2) k= pdo(ta+ 273c) +8ja*pd2 (3) where k is a constant pertaining to the particular part. k can be determined from equation 3 by measuring pd (at equilibrium) for a known ta. using this value of k the values of pd and tj can be obtained by solving equations ( 1 ) and (2) iteratively for any value of ta. &l
. . 6,4 dc electrical characteristics (vcc = 5.0 vdc + 5%, ta= o to 70c, unless othewise noted) charamerimiu smw mtn input high voltage k.. . . . . . all inputs vih vss + 2.0 vcc input low voltage v all inputs vil vss -0.3 vss+o.8 v input leakage current (vin = o to 5.25 v) hi, h3, r/w, ~es fi, clk, rs1-rs5, ~~ lin j,~,p~,, hi-z (off state) input current (~?=0.4 to 2.4) btack, pcgpc7. do-d7 . ,,,:, ???~??? ;; 1.1 *:?- 4?:* * -a
6.5 ac electrical specifications ? clock timing (see figure 6-1) i chamaeristic i smbl ~ ion ! f i 2,0 i 8 i i i 8 mhz 10 mhz 12.5 mhz min i max min max min max unit w ,0 2.0 10.0 4.0 12.0 mhz i tm,,fi i 125 i ~ lm m 80 2m w & 2w % m * 2w % n in ? k ii 6-3
6.6 ac electrical specifications (vcc=5.o vdc *5%, vss =0 vdc, ta= oc to 70c, unless othemise noted) ) 8 mhz i 10 mhz 12.5 mhz numbr characteristic min i ma. mi~ i max min i max unit 1 r/~, rs1-rs5 valid to cs low [setup time] ol- 1 ol? 2(1 ol? 3[!, -? -?,. ,? ?l,. l??, 4[2) = low to p-+- n,,+ ~j-i:j i?17ci i mm i i 5 rs1-rs5 valid tn n2f2 n, i* vslia 1- 1 lm i ? itml ?6 clk low to dtack o 7(3) dtack low to ~ hi$ 8 ?_ = or piack or tiack high to data out invalid (u-ia 7;--! l?l-lol - i ,,0 ?i,j,:;-?-lq ? , . . . . . . . . . 10) i = low to rl~ and rs1-rs5 invalid (hold time) lml? i 65 j - i i 11) 60 i ~ i n,,, *n ~1 k i n~v (setup time) 3o1- 20 / ? 20 i ? 1, ?0,0 ?ul vallu i ? i ,u i 1 w i -.. ? .- ---- -?. .?,, ? .- r- 1 c - low (read/write cvcle) o 70 0 60 gh (hold time) o ? .0 - 0 . . . ..t ,,..:. . . . . . ,+..~ , ,:, >>,. 1? ns i i \l lulu t illlel i 1 ! i i ,,,, ..,, s,$:? i i ,9 ?? = or piack or tiack high to d&d7 .,? 50 ? 45 45 high impedance ns } 10 ,: t~~? ?_ ~ or piack or tiack high to dtack high - 50 ? ?_ *7i$. ,+c~ - 40 ns 11 = or piack or tiack high to dtack ?, lm ? .>$@&:\? ?? _ 45 hiah imoedance ns -. l ??,.1. ., . -, 12 data in valid to ~ low (setup time) ,,. ,, ,,, 0 ? @::t>,&? %*,:** _ o ? 13 ns = low to data in invalid (hold time) lw - 14 f%~ ?:? ? m - ns port input data valid to hi ( h3) assertad 100 ? f ?*:w ? (setud time) 50 ? t:, $+~? ns lb i hijh~l assertad to port input data invalid unla timn) , 20 ~ ,$~, , +ijy, ... . 16 handshake input hi (h4) pulse width assertad 4q o ?k#,* ,;?- 17 handshake input h1 [h4t pulse width negated $*:<;&j ? , - 18 h1 (h3) asserted to h2(h4) negated (delav time) _~.~:.$ ! 150 i ? 19 clk low to h2[h41 asserted (delav t i 1201 -1201 -ins 1 -?, -, , ,l, , ,7, naac, ,=? ~? m , (?q, fi>~~, ~~? ..,:, ?\:j}\. . u ? u ns 21 (5) clk low to h2( h4) pulse negated (d,**] ?? 125 ? 125 ? lm ns 22(9,1 1) synchronized h1 (h3) to clk low @+@f~% .2.5 3.5 2.5 3.5 2.5 35 clk per. dmar eq is asserted .,$$:+, ?$it: > ,}k~? ., ,.. 23 clk low on which dmareq??~~ked?to clk 2.5 3 2.5 3 2.5 3 clk per, low on which dmareqh&~?:~ted 24 clk low to port out~?jd;@$alid (delav time) ? im ? 120 ? 100 (modes o and 1).. ,. ~ \.*., ns 25(9,1 1 t synchronized h1 @3wrt output data invalid 1.5 (modes o a*f&{$},;$ 2.5 1.5 2.5 1.5 2.5 clk per. 26 h 1 negated ??~:~?~ output data valid 70 ? .50 ?? 50 (mo@~ an&~) ns 27 h1 a~8$$:@lo .port output data high impedance o 70 0 70 0 ,f$~q&s q and 3) 70 ns 28 ~ ~~. data valid to dtack low (setup time) o - 0 - 0 ? ns 2~&~:* ; $t~ low to data output valid, interrupt 120 ? >., . . 100 - 60 ns ,.. , $ - . ?7? h1 (h3) asserted to cl ?_ piack or tiack low to clk low (setup time) w ? 40 - a ?- ns synchronized ~ to clk low on which 3 3 .)$ 3 3 3 dmareq is asserted 3 clk per. .- . . . .-.-.--s- -7 -,- [ i i i i i i ..-. lk high (setup time) 5ol? 4ol? 40 ?1 ? ns r i k --,-...1- # i i i i i xiy, i i ) svnchronizad h1 (h3) to clk low on which 3.5 4,5 h2(h4) is asserted 3.5 4.5 3.5 -4.5 clk per. 34 clk low to dtack low interrupt acknowledge - 100 - cycle (delay time) 100 ? 80 ns j low [delay time) o 120 0 35 clk low to dmareq 36 100 0 80 ns clk low to dmareq high (delav time) o 120 0 lm o 80 ns 37(111 synchronized h1 (h3) to clk low on which pirq is asserted 3 3 3 3 3 3 clk per. 64 -.
..< 6.6 ac electrical specifications (continued) 8 mhz 10 mhz 12.5 mhz number characteristic min max min max min max unit 36(11} synchronized = to clk low on which ~ 3 3 3 3 3 3 is high impedance 3 clk low to pirq low or high impedance o 250 0 225 0 40(8) tin frequency (external clock) ? prescaler used o 1 0 1 0 41 tin frequency (external clock) ? prescaler o 1/8 o 118 0 not used 42 tin pulse width high or low (external clock) 55 ? 45 ? 45 ?+ ~, jl ns 43 tin pulse width low (run/halt control) .1., s 1 - 1 . \,4~:t., clk per. 44 clk low to tout high, low, or high impedance o 250 0 l5 ., ~;i%? 2; ns _? ? ?? 45 _ cs, piack, or tiack high to cs, piack, or % ? tiack low notes: 1. this specification onlv applies if the pi it had completed all operations initiated by t~,~~~jous bus cycle when~ was asserted. .,t.~j~,., following a normal read or write bus cycle, all operations are complete within t~p$~s after the falling edge of the clk pin on which dtack was asserted. if ~ is asserted prior to completion of these qq~::lo~, the new bus cycle, and hence, dtack is postponed. ,.*. ? ? ~,..,.,: ? *+:~;t,:i? ., ?..+ if all operations of the previous bus cycle were complete when=& asserted, this specification is made only to insure that .$; dtack is asserted with respect to the falling edge of the clk pi~~~o% in the timing diagram, not to guarantee operation of the part. if the = setup time is violated, dtack mav be as~~{,a~shown, or may be asserted one clock cycle later. .,:.?\$~\ .: . . . ,.!l:< ~,, .:r~, 2. assuming the rs1-rs5 to data valid time has also expired~~~? ,.$~> 3. this specification imposes a lower bound on ~ id time, guaranteeing that ~ will be low for at least 1 clk period. ,$*\. ..x1 ,. .,:~ ..-\c ?~,,, ,,, .* 4. this specification assures recognition of thq *w edge of h1 (h3). ,+\jt ?~ ?<, ?~:?>,,, ,1<* 5. this specification applies only when a a~,~~,~hdshake option is chosen and the pulse is not sho~ened due to an earlv a=erted edge of h1 (h3}. ..).,. s, ,,~~ ~~ ~ *,,+,. f\. , ~$. . .~l,t~ ~!~$~ ,, *. ..?.>. ..,i,l . 6. clk refers to the actual freqv#ky @the clk pin, not the maximum allowable clk frequency- ~+wp ;,$:*,j ,., 7. if the setup time on th~~~~~,~ge of the clock is not met, h1 ( h3) may not be recognized until the next fisin9 of the clock. ,?.~ . . . ~:,,i, .1> 8. this limit applies ~@~~$~~~uency of the signal at ti n compared to the frequency of the clk signal during each clock cycle. if any period of the wavdk~~at tin is smaller than the period of the clk signal at that instant, then it is likely that the timer circuit will completely j$~we ori~? cycle of the tin signal. , ~$$$..> :.,,,. ,..,a; >.,:~i~ ??::, >,$\*p if the$~~,~~tghals are-derived from different sources thev till have different instantaneous fraquencv variations. in this case the fr~~~~~~plied to the ti n pin must be distinctly less than the frequency at the clk pin to avoid lost cycles of the tin signal. ~+@~~bls derived from different crystal oscillators applied to the tin and clk pins with fast rise and fall times, the tin fre ~?:y~u~~v ~n approach 60 to 90% of the frequency of the clk,signal without a loss of a cycle of the tin signal. ~., ..~.. * 1?* . . . . . . ,.. $?i*. ~.,j,., , .? .$.,,, jf these wo signals are derived from the same frequency source then the frequencv of the signal applied to tin can be 100% of the ~ :*,3,i, . . . .*<< +s*.~.. ?~,*.. frequency at the clk pin. they may be generated bv different buffers from the same signal or one maybe an inverted version of .4.& ~ ..;$+:,:+., ~... {.,. the other. the tin signal may be generated bv an ?and? function of the clock and a control signal. ?\i), !. 9. the maximum value is caused bv a peripheral access {hl ( h3) asserted) and bus access (= asserted) occurring at the same time. 10. see 1.4 bus interface operation for exception. 11. synchronized means that the input signal has been seen bv the pi/ton the appropriate edge of the clock (rising edge for h1 (h3) and falling edge for =). [refer to the 1.4 bus interface operation for the exception concerning ~.) ~ timing diagrams (figures 6-2, 6-3, 6-4, 6-5, and 6-6) are located on foldout pages 3 4 5 and 6 at the
i.
7.2 ordering information frquency package type (mhz) temperature order number ceramic 8.0 o?c to 7o?c mc~230l8 l suffix 10,0 o?c to 7o?c mcw23ol1o 12.5 .o?c to 7o?c .-: \.r*,, mcw230l12 ?,>.??., t4~: ,?r,,f?&:\t .,,,*\, !<*.. ? ~ ,s$ . . ?~* .,,!->., .!: plastic 8.0 o?c to 7o?c mcw230g8,a,i+~:$~a~:# g suffix 10.0 o?c to 7o?c m c08230~ $qjpi! :,+? >*m$, . . ,a\i & ~~~?, {.. lo .? .-. ->? .-. _ . .. ?- , .,.,
iwiilliijeters inches dim min [ max i min i max , e b l.d4 j c--? k 3.23 i u i i./a dab i v.uiu q ou i
table 1-3. rwistw mdei (sheet 1 of 2) mdel (sheet 2 of 2) vilua ahw m {ha 54321 00000/ 00001 0000 10001 00019 10010 10011 10100 10io1 10110 .10111 11000 00011 s fir sit sit . . counlm p(dmd la 17 16 fl~ister lh@hl bit w: . . co?n!ef pfdmd iil.iil~)g 6 rwkler lmd) mi 90 wt 4i31210?b countw p,&d rw61w (low) ..* 00 (null) 00100 00101 i i i 16 i 16 i 14 i 1311 ml ait fit i oit i fit i 11001 11010 7 i a i 6 i . . . . . . l i zd! 00 00 00 00 00 00 timi shius fl~lsw( (null) (null) 11011 31100 11101 11110 inulll . . . . . . . . ? . register (null) (nuio {null) 11111
hgure 62. raad cvcle ~~rrg magram foldout 3 foldout 4
clk - pa(pbi07 - z (md 0.11 -, ,f .,, ti pa(pbioi - (md2,31 - a , figure&6. peripheral output ~ming dagram
,.- . . . . . . .,. . ? l motorola reserves !he right to make changes to any products herein 10 improve reliability, function or design. motorola does not assume any iiabilitvarising out of the application or use of anv product or circuit described harein; neither does it convev any license under ifs patent rights nor the rights of others, .
: . . . . . . . . ___ ?,, (m) m~~oro~a se~ic~nductor products inc. 3501 ed bluestein blvd., austin, tews 78721 l a subsidiary of motorou inc ( . .._ . . ( ?.?


▲Up To Search▲   

 
Price & Availability of MC68230G8

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X